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:
Vitalii Koshura 2023-03-22 14:01:47 +01:00 committed by GitHub
commit bcb786b980
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}