Commit graph

14 commits

Author SHA1 Message Date
Craig Barnes
22f25a9e4f Print stack trace on assert() failure or when calling fatal_error()
Note: this uses the __sanitizer_print_stack_trace() function from the
AddressSanitizer runtime, so it only works when AddressSanitizer is
in use.
2021-01-16 19:56:33 +00:00
Craig Barnes
7eb70a453b Replace GCC "unused" and "format" attributes with portable macros 2020-08-07 20:42:34 +01:00
Craig Barnes
8541ce10a2 log: simplify _sys_log() function 2020-08-06 23:31:21 +01:00
Craig Barnes
11a1d99da7 Replace non-portable "\e" escape in string literals with "\033" 2020-08-02 23:54:04 +01:00
Daniel Eklöf
cea75625e2
log: always log file:lineno 2020-02-16 14:40:08 +01:00
Daniel Eklöf
82b8853f17
main: add --print-pid=FILE|FD
When specified, our PID is written to the specified file (or FD),
after we've successfully started up.
2020-02-05 19:54:16 +01:00
Daniel Eklöf
d7d2aae053
log: log to stderr, not stdout 2020-02-04 18:29:04 +01:00
Daniel Eklöf
a0fcec3a3d
log: caller can control syslog level 2019-12-17 19:07:28 +01:00
Daniel Eklöf
55a23a5b29
log: set syslog facility to LOG_DAEMON when run in server mode 2019-11-20 19:43:31 +01:00
Daniel Eklöf
15b12f45c6
scan-build: fix a couple of minor warnings from a scan-build run 2019-11-05 10:39:36 +01:00
Daniel Eklöf
c03aeb1b4f
log: syslog: tag unused function arguments as unused 2019-07-30 21:50:08 +02:00
Daniel Eklöf
c9138c6d7d
log: log to syslog too 2019-07-30 21:48:14 +02:00
Daniel Eklöf
63fb7a9374
log: don't syslog 2019-06-29 20:48:02 +02:00
Daniel Eklöf
910c540ea9
initial commit: maps an XDG toplevel window 2019-06-12 20:08:54 +02:00