splunk_logger: move environment hook to splunk_logger pt2
for reusability also in image-builder
This commit is contained in:
parent
43c6bc7abc
commit
a4068b328d
6 changed files with 7 additions and 37 deletions
|
|
@ -85,7 +85,7 @@ func main() {
|
|||
}
|
||||
|
||||
if config.DeploymentChannel != "" {
|
||||
logrus.AddHook(&common.EnvironmentHook{Channel: config.DeploymentChannel})
|
||||
logrus.AddHook(&slogger.EnvironmentHook{Channel: config.DeploymentChannel})
|
||||
}
|
||||
|
||||
if config.SplunkHost != "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue