Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5526)

Unified Diff: chrome/browser/sync_file_system/logger.cc

Issue 20609006: Add severity info to drive::EventLogger. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync_file_system/logger.cc
diff --git a/chrome/browser/sync_file_system/logger.cc b/chrome/browser/sync_file_system/logger.cc
index 7e5e628aaa001c774c5689e8940f45f3419a8976..4f4bede73c6e54eae65c0e836fe07c639736b469 100644
--- a/chrome/browser/sync_file_system/logger.cc
+++ b/chrome/browser/sync_file_system/logger.cc
@@ -54,7 +54,9 @@ void Log(logging::LogSeverity severity,
// On thread-safety: LazyInstance guarantees thread-safety for the object
// creation. EventLogger::Log() internally maintains the lock.
drive::EventLogger* ptr = g_logger.Pointer();
- ptr->Log("[%s] %s", LogSeverityToString(severity), what.c_str());
+ ptr->Log(severity, base::StringPrintf("[%s] %s",
+ LogSeverityToString(severity),
+ what.c_str()));
// Log to console if the severity is at or above the min level.
// LOG_VERBOSE logs are also output if the verbosity of this module
« chrome/browser/drive/event_logger.h ('K') | « chrome/browser/drive/event_logger_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698