Skip to content

Commit

Permalink
respect * debug selector in IsDebug
Browse files Browse the repository at this point in the history
  • Loading branch information
urso committed Oct 29, 2015
1 parent 3989f8f commit 5c72b67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file based on the
- Use stderr for console log output. #219
- Handle empty event array in publisher. #207
- Limit number of workers for Elasticsearch output to 1 per configured host. packetbeat#226
- Respect '*' debug selector in IsDebug. #226 (elastic/packetbeat#339)

### Added
- Add Console output plugin. #218
Expand Down
2 changes: 1 addition & 1 deletion logp/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func MakeDebug(selector string) func(string, ...interface{}) {
}

func IsDebug(selector string) bool {
return _log.selectors[selector]
return _log.debug_all_selectors || _log.selectors[selector]
}

func msg(level Priority, prefix string, format string, v ...interface{}) {
Expand Down

0 comments on commit 5c72b67

Please sign in to comment.