summaryrefslogtreecommitdiff
path: root/src/screen.cpp
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2009-02-25 22:42:20 +0100
committerDanny Baumann <dannybaumann@web.de>2009-02-25 22:42:20 +0100
commitff4a12d214bfa591d562228609d8780b69bba304 (patch)
tree828b33f1428b3bd482bf86ae31db4fadd7e5f80c /src/screen.cpp
parentcdf374c02dc8d16f13be1b0260d738172592ab1a (diff)
downloadunity-window-decorator-ff4a12d214bfa591d562228609d8780b69bba304.tar.gz
unity-window-decorator-ff4a12d214bfa591d562228609d8780b69bba304.tar.bz2
Get plugin loading improvements from 0.8 branch and add --debug command
line parameter that enables logging of CompLogLevelDebug messages on stdout.
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);