diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-12-02 10:45:10 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-12-02 10:45:10 +0000 |
| commit | b43a41df6a5a72b22b6c16d5ac45d0d66a9d5207 (patch) | |
| tree | 27c6051e43420c5a6dc5697cf2e01bfccacf69c9 /debug.h | |
| parent | url-mode: tag cells after snapshot:ing the grid (diff) | |
log: don’t default to syslog enabled
Initialize the global ‘do_syslog’ variable to false. This ensures any
log calls done before log_init() has been called (e.g. unit tests)
doesn’t syslog anything.
As a side effect, such log calls no longer open an implicit syslog
file descriptor; this is how this “bug” was found: valgrind detected
an unclosed file descriptor at exit.
Finally, completely disable syslogging if log-level is “none”.
Diffstat (limited to 'debug.h')
0 files changed, 0 insertions, 0 deletions
