summaryrefslogtreecommitdiff
path: root/src/screen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.cpp')
-rw-r--r--src/screen.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/screen.cpp b/src/screen.cpp
index 602f3b4..33527b9 100644
--- a/src/screen.cpp
+++ b/src/screen.cpp
@@ -1422,6 +1422,9 @@ logMessage (const char *componentName,
CompLogLevel level,
const char *message)
{
+ if (!debugOutput && level >= CompLogLevelDebug)
+ return;
+
fprintf (stderr, "%s (%s) - %s: %s\n",
programName, componentName,
logLevelToString (level), message);