mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-22 13:35:57 +01:00
commit
df02ccaa75
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ void Debug::log(LogLevel level, std::string msg) {
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
printf((msg + "\n").c_str());
|
printf("%s", (msg + "\n").c_str());
|
||||||
|
|
||||||
// also log to a file
|
// also log to a file
|
||||||
const std::string DEBUGPATH = ISDEBUG ? "/tmp/hypr/hyprd.log" : "/tmp/hypr/hypr.log";
|
const std::string DEBUGPATH = ISDEBUG ? "/tmp/hypr/hyprd.log" : "/tmp/hypr/hypr.log";
|
||||||
|
@ -32,4 +32,4 @@ void Debug::log(LogLevel level, std::string msg) {
|
||||||
ofs.open(DEBUGPATH, std::ios::out | std::ios::app);
|
ofs.open(DEBUGPATH, std::ios::out | std::ios::app);
|
||||||
ofs << msg << "\n";
|
ofs << msg << "\n";
|
||||||
ofs.close();
|
ofs.close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue