mirror of https://github.com/BOINC/boinc.git
Merge pull request #5161 from BOINC/dpa_api_log
API: print Y/M/D as well as time in log messages
This commit is contained in:
commit
bcb786b980
|
@ -274,7 +274,7 @@ char* boinc_msg_prefix(char* sbuf, int len) {
|
|||
strlcpy(sbuf, "localtime() failed", len);
|
||||
return sbuf;
|
||||
}
|
||||
if (strftime(buf, sizeof(buf)-1, "%H:%M:%S", tmp) == 0) {
|
||||
if (strftime(buf, sizeof(buf)-1, "%F %H:%M:%S", tmp) == 0) {
|
||||
strlcpy(sbuf, "strftime() failed", len);
|
||||
return sbuf;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue