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

Unified Diff: tools/android/loading/cloud/backend/worker.py

Issue 2039723003: tools/android/loading Add timestamps to backend logs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/loading/cloud/backend/worker.py
diff --git a/tools/android/loading/cloud/backend/worker.py b/tools/android/loading/cloud/backend/worker.py
index 11bc744e3eb6291b570d1ea85efcdc6fee4272cb..0ee52a11a39540369a697e4ea5a98be3c005bfca 100644
--- a/tools/android/loading/cloud/backend/worker.py
+++ b/tools/android/loading/cloud/backend/worker.py
@@ -205,7 +205,9 @@ if __name__ == '__main__':
args = parser.parse_args()
# Configure logging.
- logging.basicConfig(level=logging.WARNING)
+ logging.basicConfig(level=logging.WARNING,
+ format='[%(asctime)s][%(levelname)s] %(message)s',
mattcary 2016/06/06 14:50:23 Do you know if this ends up matching the same time
droger 2016/06/06 15:25:24 It seems it is the same, but this is probably by c
+ datefmt='%y-%m-%d %H:%M:%S')
worker_logger = logging.getLogger('worker')
worker_logger.setLevel(logging.INFO)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698