From 98bd25cc45c20cfa1e1b67588fa8ffce2ae9af93 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 19 Jun 2004 05:09:46 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=3675 --- checkin_notes | 6 ++++++ client/win/wingui.cpp | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/checkin_notes b/checkin_notes index 03de9dda85..a6fd878126 100755 --- a/checkin_notes +++ b/checkin_notes @@ -13997,3 +13997,9 @@ Rom June 18 2004 - Tag for 3.16 release, all platforms boinc_core_release_3_16 + +David 2004.06.18 + - add timestamps to messages written stdout/err.txt in Win + + client/win/ + wingui.cpp diff --git a/client/win/wingui.cpp b/client/win/wingui.cpp index baffeff2e7..a472a51c28 100755 --- a/client/win/wingui.cpp +++ b/client/win/wingui.cpp @@ -26,6 +26,7 @@ void show_message(PROJECT* p, char* msg, int priority) { char* x; char message[1024]; + char* time_string = time_to_string(time(0)); strcpy(message, msg); while (strlen(message)&&message[strlen(message)-1] == '\n') { @@ -35,15 +36,15 @@ void show_message(PROJECT* p, char* msg, int priority) { x = p->get_project_name(); } else { x = "---"; - } + } if(g_myWnd) { g_myWnd->MessageUser(x, message, priority); } if (priority == MSG_INFO) { - fprintf(stdout, "%s: %s\n", x, message); + fprintf(stdout, "%s [%s] %s\n", time_string, x, message); } else { - fprintf(stderr, "%s: %s\n", x, message); + fprintf(stderr, "%s [%s] %s\n", time_string, x, message); } record_message(p, priority, time(0), message); }