code: Set wlroots loglevel based on -l flag
This commit is contained in:
parent
cbd4a2807b
commit
7d0014cd38
1 changed files with 8 additions and 1 deletions
|
@ -93,7 +93,14 @@ pub fn main() anyerror!void {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
c.wlr_log_init(.WLR_ERROR, null);
|
c.wlr_log_init(
|
||||||
|
switch (log.level) {
|
||||||
|
.debug => .WLR_DEBUG,
|
||||||
|
.notice, .info, => .WLR_INFO,
|
||||||
|
.warn, .err, .crit, .alert, .emerg => .WLR_ERROR,
|
||||||
|
},
|
||||||
|
null,
|
||||||
|
);
|
||||||
|
|
||||||
log.info(.server, "initializing", .{});
|
log.info(.server, "initializing", .{});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue