We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fe3355 commit 642ba73Copy full SHA for 642ba73
src/pgtkfns.c
@@ -3176,7 +3176,7 @@ void pgtk_log(const char *file, int lineno, const char *fmt, ...)
3176
localtime_r(&ts.tv_sec, &tm);
3177
strftime(timestr, sizeof timestr, "%H:%M:%S", &tm);
3178
3179
- fprintf(stderr, "%s %.10s:%04d ", timestr, file, lineno);
+ fprintf(stderr, "%s.%06ld %.10s:%04d ", timestr, ts.tv_nsec / 1000, file, lineno);
3180
va_start(ap, fmt);
3181
vfprintf(stderr, fmt, ap);
3182
va_end(ap);
@@ -3198,7 +3198,7 @@ void pgtk_backtrace(const char *file, int lineno)
3198
3199
3200
3201
- fprintf(stderr, "%s %.10s:%04d ********\n", timestr, file, lineno);
+ fprintf(stderr, "%s.%06ld %.10s:%04d ********\n", timestr, ts.tv_nsec / 1000, file, lineno);
3202
3203
get_backtrace(bt);
3204
for (int i = 0; i < 10; i++) {
0 commit comments