mirror of
				https://github.com/MaskRay/ccls.git
				synced 2025-11-03 22:04:24 +00:00 
			
		
		
		
	Remove logging
This commit is contained in:
		
							parent
							
								
									792815b60a
								
							
						
					
					
						commit
						5ace7e7062
					
				@ -78,7 +78,6 @@ std::vector<Index_DoIdMap> DoParseFile(
 | 
			
		||||
  // Always run this block, even if we are interactive, so we can check
 | 
			
		||||
  // dependencies and reset files in |file_consumer_shared|.
 | 
			
		||||
  IndexFile* previous_index = cache_loader->TryLoad(path);
 | 
			
		||||
  LOG_S(ERROR) << "!! DoParseFile " << path << ", previous_index=" << previous_index;
 | 
			
		||||
  if (previous_index) {
 | 
			
		||||
    // If none of the dependencies have changed and the index is not
 | 
			
		||||
    // interactive (ie, requested by a file save), skip parsing and just load
 | 
			
		||||
@ -313,14 +312,12 @@ bool IndexMain_DoParse(Config* config,
 | 
			
		||||
  if (!request)
 | 
			
		||||
    return false;
 | 
			
		||||
 | 
			
		||||
  LOG_S(INFO) << "IndexMain_DoParse request->path=" << request->path;
 | 
			
		||||
  Project::Entry entry;
 | 
			
		||||
  entry.filename = request->path;
 | 
			
		||||
  entry.args = request->args;
 | 
			
		||||
  std::vector<Index_DoIdMap> responses = ParseFile(
 | 
			
		||||
      config, working_files, index, file_consumer_shared, timestamp_manager,
 | 
			
		||||
      import_manager, request->is_interactive, entry, request->contents);
 | 
			
		||||
  LOG_S(INFO) << "IndexMain_DoParse request->path=" << request->path << " responses.size()=" << responses.size();
 | 
			
		||||
 | 
			
		||||
  // Don't bother sending an IdMap request if there are no responses.
 | 
			
		||||
  if (responses.empty())
 | 
			
		||||
 | 
			
		||||
@ -38,11 +38,13 @@ bool FindFileOrFail(QueryDatabase* db,
 | 
			
		||||
    *out_file_id = QueryFileId((size_t)-1);
 | 
			
		||||
 | 
			
		||||
  LOG_S(INFO) << "Unable to find file \"" << absolute_path << "\"";
 | 
			
		||||
  /*
 | 
			
		||||
  LOG_S(INFO) << "Files (size=" << db->usr_to_file.size() << "): "
 | 
			
		||||
              << StringJoinMap(db->usr_to_file,
 | 
			
		||||
                               [](const std::pair<Usr, QueryFileId>& entry) {
 | 
			
		||||
                                 return entry.first;
 | 
			
		||||
                               });
 | 
			
		||||
  */
 | 
			
		||||
 | 
			
		||||
  if (id) {
 | 
			
		||||
    Out_Error out;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user