diff options
| author | xDarksome <dev@darkso.me> | 2022-07-02 19:43:52 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-02 19:43:52 +0300 |
| commit | 185c4d6ea13ad5f4483aa2e389e43bd09106002f (patch) | |
| tree | a7bc4a9510c39e367317b5ce64d2ee0e0a72d4f0 /src/debug/Log.cpp | |
| parent | fc4b10d13c14c4eb08febb0637f27177cb6a1940 (diff) | |
| parent | b7b3344188e3ebd2baed14bc288ee42a1ae8d6f2 (diff) | |
Merge branch 'hyprwm:main' into main
Diffstat (limited to 'src/debug/Log.cpp')
| -rw-r--r-- | src/debug/Log.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/debug/Log.cpp b/src/debug/Log.cpp index a864f0d2..2fa4a127 100644 --- a/src/debug/Log.cpp +++ b/src/debug/Log.cpp @@ -14,6 +14,9 @@ void Debug::init(std::string IS) { void Debug::log(LogLevel level, const char* fmt, ...) { + if (disableLogs && *disableLogs) + return; + // log to a file std::ofstream ofs; ofs.open(logFile, std::ios::out | std::ios::app); |
