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/NSCAServer/handler_impl.hpp

    r40fca56 r8013c0c  
    5454 
    5555  void log_debug(std::string file, int line, std::wstring msg) { 
    56     GET_CORE()->log(NSCAPI::debug, file, line, msg); 
     56    if (GET_CORE()->should_log(NSCAPI::log_level::debug)) { 
     57      GET_CORE()->log(NSCAPI::log_level::debug, file, line, msg); 
     58    } 
    5759  } 
    5860  void log_error(std::string file, int line, std::wstring msg) { 
    59     GET_CORE()->log(NSCAPI::error, file, line, msg); 
     61    if (GET_CORE()->should_log(NSCAPI::log_level::error)) { 
     62      GET_CORE()->log(NSCAPI::log_level::error, file, line, msg); 
     63    } 
    6064  } 
    6165}; 
Note: See TracChangeset for help on using the changeset viewer.