diff options
Diffstat (limited to 'server/util/server.c')
-rw-r--r-- | server/util/server.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/server/util/server.c b/server/util/server.c index 4dfd18ef..fd6e4cdc 100644 --- a/server/util/server.c +++ b/server/util/server.c @@ -253,6 +253,7 @@ int server_setup(const char *name, int flags, uint16_t stdin_event_flags; char *conf_db; int ret = EOK; + bool dt; debug_prg_name = strdup(name); if (!debug_prg_name) { @@ -324,6 +325,17 @@ int server_setup(const char *name, int flags, return ret; } + /* same for debug timestamps */ + dt = (debug_timestamps != 0); + ret = confdb_get_bool(ctx->confdb_ctx, ctx, conf_entry, + "debug-timestamps", dt, &dt); + if (ret != EOK) { + DEBUG(0, ("Error reading from confdb (%d) [%s]\n", + ret, strerror(ret))); + return ret; + } + if (dt) debug_timestamps = 1; + if (flags & FLAGS_INTERACTIVE) { /* terminate when stdin goes away */ stdin_event_flags = TEVENT_FD_READ; |