mirror of
https://github.com/swaywm/sway.git
synced 2026-05-03 06:46:26 -04:00
sway main: init old log system until end of switch to wlr_log
We need to keep the old log init if we do not want all current calls to sway_log to be silent
This commit is contained in:
parent
7dad5cd18c
commit
b3c1fff1dd
1 changed files with 4 additions and 0 deletions
|
|
@ -16,6 +16,7 @@
|
|||
#include <sys/prctl.h>
|
||||
#endif
|
||||
#include <wlr/util/log.h>
|
||||
void init_log(log_importance_t verbosity); // log.h, but can't include because of conflict
|
||||
#include "sway/config.h"
|
||||
#include "sway/server.h"
|
||||
#include "sway/layout.h"
|
||||
|
|
@ -331,10 +332,13 @@ int main(int argc, char **argv) {
|
|||
// TODO: switch logging over to wlroots?
|
||||
if (debug) {
|
||||
wlr_log_init(L_DEBUG, NULL);
|
||||
init_log(L_DEBUG);
|
||||
} else if (verbose || validate) {
|
||||
wlr_log_init(L_INFO, NULL);
|
||||
init_log(L_INFO);
|
||||
} else {
|
||||
wlr_log_init(L_ERROR, NULL);
|
||||
init_log(L_ERROR);
|
||||
}
|
||||
|
||||
if (optind < argc) { // Behave as IPC client
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue