summaryrefslogtreecommitdiff
path: root/session.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-27 10:09:14 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:32 -0400
commita85bd282d7868cd1d7b7f166a2e8d2f13abfde13 (patch)
tree1682fa1da36756eabbe04ab2df1b60e557dbfee8 /session.h
parentd0e9822ed16cb36de4cb1171a89d4049c615f1a0 (diff)
downloadledger-a85bd282d7868cd1d7b7f166a2e8d2f13abfde13.tar.gz
ledger-a85bd282d7868cd1d7b7f166a2e8d2f13abfde13.tar.bz2
ledger-a85bd282d7868cd1d7b7f166a2e8d2f13abfde13.zip
Pounded the logging and memory tracing code into better shape.
Diffstat (limited to 'session.h')
-rw-r--r--session.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/session.h b/session.h
index 8f5a77b2..2fbdd2a1 100644
--- a/session.h
+++ b/session.h
@@ -32,10 +32,6 @@ class session_t : public xml::xpath_t::scope_t
bool download_quotes;
bool use_cache;
bool cache_dirty;
- bool debug_mode;
- bool verbose_mode;
- bool trace_alloc_mode;
- bool trace_class_mode;
moment_t now;
@@ -87,10 +83,6 @@ class session_t : public xml::xpath_t::scope_t
download_quotes(false),
use_cache(false),
cache_dirty(false),
- debug_mode(false),
- verbose_mode(false),
- trace_alloc_mode(false),
- trace_class_mode(false),
now(now),
@@ -165,6 +157,18 @@ class session_t : public xml::xpath_t::scope_t
virtual xml::xpath_t::op_t * lookup(const string& name);
//
+ // Debug options
+ //
+
+ void option_verify(value_t&) {}
+ void option_trace(value_t&, xml::xpath_t::scope_t * locals) {}
+ void option_debug(value_t&, xml::xpath_t::scope_t * locals) {}
+
+ void option_verbose(value_t&) {
+ _log_level = LOG_INFO;
+ }
+
+ //
// Option handlers
//
@@ -172,10 +176,6 @@ class session_t : public xml::xpath_t::scope_t
data_file = locals->args.to_string();
}
- void option_verbose(value_t&) {
- verbose_mode = true;
- }
-
#if 0
#if defined(USE_BOOST_PYTHON)
void option_import(value_t&) {