Remove logging

This commit is contained in:
Jacob Dufault 2017-12-28 09:03:35 -08:00
parent 792815b60a
commit 5ace7e7062
2 changed files with 2 additions and 3 deletions

View File

@ -78,7 +78,6 @@ std::vector<Index_DoIdMap> DoParseFile(
// Always run this block, even if we are interactive, so we can check // Always run this block, even if we are interactive, so we can check
// dependencies and reset files in |file_consumer_shared|. // dependencies and reset files in |file_consumer_shared|.
IndexFile* previous_index = cache_loader->TryLoad(path); IndexFile* previous_index = cache_loader->TryLoad(path);
LOG_S(ERROR) << "!! DoParseFile " << path << ", previous_index=" << previous_index;
if (previous_index) { if (previous_index) {
// If none of the dependencies have changed and the index is not // If none of the dependencies have changed and the index is not
// interactive (ie, requested by a file save), skip parsing and just load // interactive (ie, requested by a file save), skip parsing and just load
@ -313,14 +312,12 @@ bool IndexMain_DoParse(Config* config,
if (!request) if (!request)
return false; return false;
LOG_S(INFO) << "IndexMain_DoParse request->path=" << request->path;
Project::Entry entry; Project::Entry entry;
entry.filename = request->path; entry.filename = request->path;
entry.args = request->args; entry.args = request->args;
std::vector<Index_DoIdMap> responses = ParseFile( std::vector<Index_DoIdMap> responses = ParseFile(
config, working_files, index, file_consumer_shared, timestamp_manager, config, working_files, index, file_consumer_shared, timestamp_manager,
import_manager, request->is_interactive, entry, request->contents); 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. // Don't bother sending an IdMap request if there are no responses.
if (responses.empty()) if (responses.empty())

View File

@ -38,11 +38,13 @@ bool FindFileOrFail(QueryDatabase* db,
*out_file_id = QueryFileId((size_t)-1); *out_file_id = QueryFileId((size_t)-1);
LOG_S(INFO) << "Unable to find file \"" << absolute_path << "\""; LOG_S(INFO) << "Unable to find file \"" << absolute_path << "\"";
/*
LOG_S(INFO) << "Files (size=" << db->usr_to_file.size() << "): " LOG_S(INFO) << "Files (size=" << db->usr_to_file.size() << "): "
<< StringJoinMap(db->usr_to_file, << StringJoinMap(db->usr_to_file,
[](const std::pair<Usr, QueryFileId>& entry) { [](const std::pair<Usr, QueryFileId>& entry) {
return entry.first; return entry.first;
}); });
*/
if (id) { if (id) {
Out_Error out; Out_Error out;