mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-26 07:10:46 +00:00
uniform log date format (#447)
This commit is contained in:
@@ -61,7 +61,7 @@ seafile_log (const gchar *log_domain, GLogLevelFlags log_level,
|
|||||||
|
|
||||||
t = time(NULL);
|
t = time(NULL);
|
||||||
tm = localtime(&t);
|
tm = localtime(&t);
|
||||||
len = strftime (buf, 1024, "[%x %X] ", tm);
|
len = strftime (buf, 1024, "%Y-%m-%d %H:%M:%S ", tm);
|
||||||
g_return_if_fail (len < 1024);
|
g_return_if_fail (len < 1024);
|
||||||
if (logfp) {
|
if (logfp) {
|
||||||
fputs (buf, logfp);
|
fputs (buf, logfp);
|
||||||
|
Reference in New Issue
Block a user