aboutsummaryrefslogtreecommitdiff
path: root/common/log.c
AgeCommit message (Collapse)Author
2018-01-05common/log: finish removing most log functionsDominique Martinet
Keep sway_abort and sway_assert and convert them to use wlr_log functions
2017-11-18Move everything to sway/old/Drew DeVault
2017-10-20Print log level even if STDERR is not a ttyCalvin Lee
Makes reading debug logs much easier, debug lines will start with `E`, info lines with `I` and error lines with `E`.
2017-06-06FreeBSD fixesjohalun
Increase _POSIX_SOURCE value where needed. Increase _XOPEN_SOURCE value where needed. Conditionally link to libcap (only on Linux). Possibly some trailing whitespace fixes (automatic).
2017-04-20Make sway_abort() report locationJerzi Kaminsky
2017-04-16Fix location reported by sway_assertJerzi Kaminsky
2017-04-16Fix variadic forwarding in sway_assertJerzi Kaminsky
_sway_assert is a variadic function which tries to delegate to another variadic function. This requires a vprintf-style variant of the delegate. https://stackoverflow.com/a/150616
2017-03-10UnGNUify the codebaseDrew DeVault
2016-12-15Handle malloc failure in ipc_recv_responseDrew DeVault
2016-09-01Reorganize includesDrew DeVault
2016-07-28Add timestamp to log messagesTony Crisci
2016-07-17Remove SIGSERV and SIGABORT handlerDrew DeVault
From now on let's just let the core dumps happen and ask users to provide them.
2016-06-27Add get_log_level() to encapsulate v (current log level)David Eklov
This patch also makes all global variable in log.c static.
2016-05-02common: refactor sway_log()Eric Engestrom
This removes most preprocessor logic, leaving it only it the header.
2016-05-02common: fix double-close in error_handler()Eric Engestrom
2016-05-02Fix off-by-one bug in log functionsEric Engestrom
2016-02-26Correctly exit sway on errors.Mikkel Oscar Lyderik
Calling `exit` in sway_terminate prevents sway from correctly shutting down (freeing data, cleanly terminating the ipc server, etc.). A better way is to exit straight away if the failure occurs before `wlc_run` and use sway_abort as usual if it occur when wlc is running.
2016-02-08Fix clang warningsMikkel Oscar Lyderik
2016-01-28Print /proc/<pid>/maps on segfaultDrew DeVault
2015-12-21use CMake's FindBacktrace for backtrace feature detectionrobotanarchy
2015-11-12Start fleshing out wayland client implementationDrew DeVault
This introduces a basic shared framework for making wayland clients within sway itself.