From b6ef7e48fd5b26573a6f9e7fc99ad5fa833974db Mon Sep 17 00:00:00 2001 From: urso Date: Wed, 28 Oct 2015 01:16:56 +0100 Subject: [PATCH] respect * debug selector in IsDebug --- CHANGELOG.md | 1 + logp/log.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e57045717a4..62aa59cf129 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/logp/log.go b/logp/log.go index 3839518fa44..ea7f8522f8c 100644 --- a/logp/log.go +++ b/logp/log.go @@ -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{}) {