summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-11 07:25:42 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:47 -0400
commit4de38a916a0bb4c5709e55cb20f75789c76a0cbd (patch)
treec9f52d204878d5b845c44f303c97986c9b475fa0
parent28c32fa8ef774d4df21c7c2f0f31b1a980208c1a (diff)
downloadfork-ledger-4de38a916a0bb4c5709e55cb20f75789c76a0cbd.tar.gz
fork-ledger-4de38a916a0bb4c5709e55cb20f75789c76a0cbd.tar.bz2
fork-ledger-4de38a916a0bb4c5709e55cb20f75789c76a0cbd.zip
Guarded reference to _log_level.
-rw-r--r--src/session.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/session.h b/src/session.h
index 40fb5c4a..8b72ae42 100644
--- a/src/session.h
+++ b/src/session.h
@@ -194,8 +194,10 @@ class session_t : public xml::xpath_t::scope_t
void option_debug(value_t&, xml::xpath_t::scope_t * locals) {}
void option_verbose(value_t&) {
+#if defined(LOGGING_ON)
if (_log_level < LOG_INFO)
_log_level = LOG_INFO;
+#endif
}
//