mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-08 07:05:58 +01:00
log: log wlr logs to stdout
This commit is contained in:
parent
70e3cb8151
commit
cc2c270dde
1 changed files with 3 additions and 0 deletions
|
@ -23,6 +23,9 @@ void Debug::wlrLog(wlr_log_importance level, const char* fmt, va_list args) {
|
||||||
ofs << "[wlr] " << output << "\n";
|
ofs << "[wlr] " << output << "\n";
|
||||||
|
|
||||||
ofs.close();
|
ofs.close();
|
||||||
|
|
||||||
|
if (!disableStdout)
|
||||||
|
std::cout << output << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
void Debug::log(LogLevel level, const char* fmt, ...) {
|
void Debug::log(LogLevel level, const char* fmt, ...) {
|
||||||
|
|
Loading…
Reference in a new issue