Commit e51ad495 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 2fdfe403
......@@ -266,6 +266,7 @@ void __Logf(const char *file, int line, char level, const char *format, ...) {
string prefix = fmt::sprintf("%c%s.%06d % 7d %s:%d] ", level, t_buf, t_us, tid, file, line);
// XXX better to emit prefix and msg in one go.
flockfile(stderr);
fprintf(stderr, "%s", v(prefix));
va_list argp;
......@@ -274,6 +275,7 @@ void __Logf(const char *file, int line, char level, const char *format, ...) {
va_end(argp);
fprintf(stderr, "\n");
funlockfile(stderr);
}
}} // golang::log::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment