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

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

Issue 15657002: Mirror syncfs log to console and WebUI, with LogSeverity support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplified macro Created 7 years, 7 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/drive_file_sync_util.cc
diff --git a/chrome/browser/sync_file_system/drive_file_sync_util.cc b/chrome/browser/sync_file_system/drive_file_sync_util.cc
index abd2998b9d55fd2aa13867d50ce7584aebb154f9..cb10383cf3ac39fc151c63851c00416d03670e3e 100644
--- a/chrome/browser/sync_file_system/drive_file_sync_util.cc
+++ b/chrome/browser/sync_file_system/drive_file_sync_util.cc
@@ -6,6 +6,7 @@
#include "base/command_line.h"
#include "base/logging.h"
+#include "chrome/browser/sync_file_system/logger.h"
namespace sync_file_system {
@@ -77,7 +78,7 @@ SyncStatusCode GDataErrorCodeToSyncStatusCode(
if (error == -1)
return SYNC_STATUS_NETWORK_ERROR;
- LOG(WARNING) << "Got unexpected error: " << error;
+ SYNCFS_LOG(WARNING, "Got unexpected error: %d", static_cast<int>(error));
return SYNC_STATUS_FAILED;
}

Powered by Google App Engine
This is Rietveld 408576698