1
0
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:
feiniks 2025-01-22 14:16:31 +08:00 committed by GitHub
parent 0deb45d89f
commit 255d5dedd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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