summaryrefslogtreecommitdiff
path: root/src/debug/Log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug/Log.cpp')
-rw-r--r--src/debug/Log.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/debug/Log.cpp b/src/debug/Log.cpp
index 7547204a..c2939831 100644
--- a/src/debug/Log.cpp
+++ b/src/debug/Log.cpp
@@ -10,30 +10,6 @@ void Debug::init(const std::string& IS) {
logFile = IS + (ISDEBUG ? "/hyprlandd.log" : "/hyprland.log");
}
-void Debug::wlrLog(wlr_log_importance level, const char* fmt, va_list args) {
- if (level > wlr_log_get_verbosity())
- return;
-
- char* outputStr = nullptr;
-
- vasprintf(&outputStr, fmt, args);
-
- std::string output = std::string(outputStr);
- free(outputStr);
-
- rollingLog += output + "\n";
-
- if (!disableLogs || !**disableLogs) {
- std::ofstream ofs;
- ofs.open(logFile, std::ios::out | std::ios::app);
- ofs << "[wlr] " << output << "\n";
- ofs.close();
- }
-
- if (!disableStdout)
- std::cout << output << "\n";
-}
-
void Debug::log(LogLevel level, std::string str) {
if (level == TRACE && !trace)
return;