Skip to content

Commit

Permalink
Fixed unit testing failing due to recent logging changes.
Browse files Browse the repository at this point in the history
Because normal logging was enabled by default, unit tests started failing after recent changes which moved some of verbose or info logging to normal. To fix, logging is off by default.
  • Loading branch information
tomaz committed Nov 23, 2012
1 parent 82ca6ac commit b171491
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions appledoc/Common/Logging.h
Expand Up @@ -23,6 +23,7 @@ extern NSUInteger log_level;
#define LOG_FLAG_VERBOSE (1 << 3) // 0b0000001000
#define LOG_FLAG_DEBUG (1 << 4) // 0b0000010000

#define LOG_LEVEL_OFF (0)
#define LOG_LEVEL_ERROR (LOG_FLAG_ERROR) // 0b00001
#define LOG_LEVEL_WARN (LOG_FLAG_WARN | LOG_LEVEL_ERROR) // 0b00011
#define LOG_LEVEL_NORMAL (LOG_FLAG_NORMAL | LOG_LEVEL_WARN) // 0b00111
Expand Down
2 changes: 1 addition & 1 deletion appledoc/Common/Logging.m
Expand Up @@ -105,4 +105,4 @@ void initialize_logging_from_settings(GBSettings *settings) {
#pragma mark - Definitions of external symbols

logger_function_t log_function = log_function_none;
NSUInteger log_level = LOG_LEVEL_NORMAL;
NSUInteger log_level = LOG_LEVEL_OFF;

0 comments on commit b171491

Please sign in to comment.