| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | log: fix syslog not respecting the configured log level | Daniel Eklöf | 2024-04-05 | -0/+3 |
| | | ||||
| * | util: add streq() function and use in place of strcmp(...) == 0 | Craig Barnes | 2024-02-05 | -1/+1 |
| | | ||||
| * | log: don’t default to syslog enabled | Daniel Eklöf | 2022-12-02 | -2/+7 |
| | | | | | | | | | | | | | 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”. | |||
| * | log: simplify Boolean logic for setting "colorize" var in log_init() | Craig Barnes | 2021-09-15 | -1/+1 |
| | | ||||
| * | log: add LOG_CLASS_NONE and use as initializer for log_level | Craig Barnes | 2021-06-26 | -43/+45 |
| | | | | | | | | | | | | | This means that logging will be completely disabled until log_init() has been called, which is useful to prevent log spam when running UNITTEST{} blocks in debug builds. Note that this doesn't change the default log level at runtime, which was already being set to LOG_CLASS_INFO in main.c and client.c. The new log level is also exposed to the command-line interface as `--log-level=none`, which allows disabling logging entirely. | |||
| * | log: add va_list versions of log_* functions | Daniel Eklöf | 2021-05-07 | -27/+51 |
| | | ||||
| * | errno: don’t use ‘_errno’ as a variable name; _ are reserved for use as identifiers | Daniel Eklöf | 2021-02-21 | -3/+3 |
| | | ||||
| * | main: client: factor out some common code for "--log-level" option | Craig Barnes | 2021-02-11 | -0/+40 |
| | | ||||
| * | log: log-level applies to messages logged to stderr too | Daniel Eklöf | 2021-02-09 | -2/+7 |
| | | ||||
| * | debug: rename assert() to xassert(), to avoid clashing with <assert.h> | Craig Barnes | 2021-01-16 | -2/+2 |
| | | ||||
| * | Print stack trace on assert() failure or when calling fatal_error() | Craig Barnes | 2021-01-16 | -6/+6 |
| | | | | | | | Note: this uses the __sanitizer_print_stack_trace() function from the AddressSanitizer runtime, so it only works when AddressSanitizer is in use. | |||
| * | Replace GCC "unused" and "format" attributes with portable macros | Craig Barnes | 2020-08-07 | -2/+1 |
| | | ||||
| * | log: simplify _sys_log() function | Craig Barnes | 2020-08-06 | -25/+6 |
| | | ||||
| * | Replace non-portable "\e" escape in string literals with "\033" | Craig Barnes | 2020-08-02 | -4/+4 |
| | | ||||
| * | log: always log file:lineno | Daniel Eklöf | 2020-02-16 | -4/+0 |
| | | ||||
| * | main: add --print-pid=FILE|FD | Daniel Eklöf | 2020-02-05 | -10/+15 |
| | | | | | | When specified, our PID is written to the specified file (or FD), after we've successfully started up. | |||
| * | log: log to stderr, not stdout | Daniel Eklöf | 2020-02-04 | -9/+9 |
| | | ||||
| * | log: caller can control syslog level | Daniel Eklöf | 2019-12-17 | -3/+15 |
| | | ||||
| * | log: set syslog facility to LOG_DAEMON when run in server mode | Daniel Eklöf | 2019-11-20 | -5/+10 |
| | | ||||
| * | scan-build: fix a couple of minor warnings from a scan-build run | Daniel Eklöf | 2019-11-05 | -1/+1 |
| | | ||||
| * | log: syslog: tag unused function arguments as unused | Daniel Eklöf | 2019-07-30 | -2/+4 |
| | | ||||
| * | log: log to syslog too | Daniel Eklöf | 2019-07-30 | -3/+66 |
| | | ||||
| * | log: don't syslog | Daniel Eklöf | 2019-06-29 | -66/+3 |
| | | ||||
| * | initial commit: maps an XDG toplevel window | Daniel Eklöf | 2019-06-12 | -0/+146 |
