mirror of
https://github.com/haiwen/libsearpc.git
synced 2025-04-27 18:25:06 +00:00
Modify slow log format (#75)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
parent
0deb45d89f
commit
255d5dedd2
@ -354,7 +354,7 @@ print_slow_log_if_necessary (const char *svc_name, const char *func, gsize len,
|
|||||||
fprintf (slow_log_fp, "[seafile-slow-rpc] ");
|
fprintf (slow_log_fp, "[seafile-slow-rpc] ");
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf (slow_log_fp, "[%s] - %s - %.*s - %.3f\n",
|
fprintf (slow_log_fp, "[%s] \"%s\" %.*s %.3f\n",
|
||||||
time_buf, svc_name, (int)len, func, intv_in_sec);
|
time_buf, svc_name, (int)len, func, intv_in_sec);
|
||||||
fflush (slow_log_fp);
|
fflush (slow_log_fp);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user