mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54: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:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user