mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-03 15:41:54 +00:00
Debug messages with timestamps.
On most of current hardware, getting monotonic clock is fast enough to get it and write for each debug message.
This commit is contained in:
parent
df3264f51f
commit
a2af807357
@ -439,6 +439,8 @@ done:
|
|||||||
void
|
void
|
||||||
log_init_debug(char *f)
|
log_init_debug(char *f)
|
||||||
{
|
{
|
||||||
|
clock_gettime(CLOCK_MONOTONIC, &dbg_time_start);
|
||||||
|
|
||||||
if (dbgf && dbgf != stderr)
|
if (dbgf && dbgf != stderr)
|
||||||
fclose(dbgf);
|
fclose(dbgf);
|
||||||
if (!f)
|
if (!f)
|
||||||
|
Loading…
Reference in New Issue
Block a user