Skip to content

Commit

Permalink
Merge pull request #226 from urso/bug/339-debug-star-selector
Browse files Browse the repository at this point in the history
respect * debug selector in IsDebug
  • Loading branch information
ruflin committed Oct 29, 2015
2 parents 3989f8f + 5c72b67 commit b553416
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 b553416

Please sign in to comment.