diff options
author | rfree2monero <rfreemonero@op.pl> | 2015-04-02 13:58:38 +0200 |
---|---|---|
committer | rfree2monero <rfreemonero@op.pl> | 2015-04-02 13:58:38 +0200 |
commit | 391c7f9612a9862f699165ab26390d5253807834 (patch) | |
tree | e5272e91d9fe63be4ddce7dac396049fd0c375f4 /contrib/otshell_utils/utils.cpp | |
parent | [fix] mac os x includes std::random... (diff) | |
download | monero-391c7f9612a9862f699165ab26390d5253807834.tar.xz |
Utils: use const, document dbg. Less default debug
Diffstat (limited to 'contrib/otshell_utils/utils.cpp')
-rw-r--r-- | contrib/otshell_utils/utils.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/contrib/otshell_utils/utils.cpp b/contrib/otshell_utils/utils.cpp index 3ca84da8e..dbdb8bdcd 100644 --- a/contrib/otshell_utils/utils.cpp +++ b/contrib/otshell_utils/utils.cpp @@ -46,6 +46,21 @@ namespace nUtils { INJECT_OT_COMMON_USING_NAMESPACE_COMMON_1 // <=== namespaces +// ==================================================================== + +// Numerical values of the debug levels - see hpp +const int _debug_level_nr_dbg3=20; +const int _debug_level_nr_dbg2=30; +const int _debug_level_nr_dbg1=40; +const int _debug_level_nr_info=50; +const int _debug_level_nr_note=60; +const int _debug_level_nr_fact=75; +const int _debug_level_nr_mark=80; +const int _debug_level_nr_warn=90; +const int _debug_level_nr_erro=100; + +// ==================================================================== + myexception::myexception(const char * what) : std::runtime_error(what) { } @@ -277,7 +292,7 @@ cLogger::cLogger() : mStream(NULL), mStreamBrokenDebug(NULL), mIsBroken(true), // before constructor finishes -mLevel(70), +mLevel(_debug_level_nr_warn), mThread2Number_Biggest(0), // the CURRENT biggest value (no thread yet in map) mPid2Number_Biggest(0) { |