Guarded reference to _log_level.

This commit is contained in:
John Wiegley 2007-05-11 07:25:42 +00:00
parent 28c32fa8ef
commit 4de38a916a

View file

@ -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
}
//