Ignore:
Timestamp:
01/23/12 07:41:06 (16 months ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
6a30f44
Parents:
28f6a64
Message:
  • Fixed so NSCAClient parses address correctly
  • settings exception is now derived from exception meaning it will show up more with details (instead of unknown)
  • Added API for handling log level (replaces older debug flag)
  • Added options for settings debug level
  • Changed to --settings is a global argument (meaning you can use it in any mode)
  • Added arguments parsing to test: so you can use global arguments such as --log and --settings.
  • Removed memory leak in settings parsing interface
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/NSClientServer/handler_impl.hpp

    r40fca56 r8013c0c  
    3131 
    3232  void log_debug(std::string file, int line, std::wstring msg) { 
    33     GET_CORE()->log(NSCAPI::debug, file, line, msg); 
     33    if (GET_CORE()->should_log(NSCAPI::log_level::debug)) { 
     34      GET_CORE()->log(NSCAPI::log_level::debug, file, line, msg); 
     35    } 
    3436  } 
    3537  void log_error(std::string file, int line, std::wstring msg) { 
    36     GET_CORE()->log(NSCAPI::error, file, line, msg); 
     38    if (GET_CORE()->should_log(NSCAPI::log_level::error)) { 
     39      GET_CORE()->log(NSCAPI::log_level::error, file, line, msg); 
     40    } 
    3741  } 
    3842 
Note: See TracChangeset for help on using the changeset viewer.