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

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: expect -> assert fix 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..7c69a196d7e8e62a1c4d6574823b5557c8deb38f 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,10 @@ SyncStatusCode GDataErrorCodeToSyncStatusCode(
if (error == -1)
return SYNC_STATUS_NETWORK_ERROR;
- LOG(WARNING) << "Got unexpected error: " << error;
+ util::Log(logging::LOG_WARNING,
+ FROM_HERE,
+ "Got unexpected error: %d",
+ static_cast<int>(error));
return SYNC_STATUS_FAILED;
}
« no previous file with comments | « chrome/browser/sync_file_system/drive_file_sync_service.cc ('k') | chrome/browser/sync_file_system/drive_metadata_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698