Skip to content

Commit 88446af

Browse files
committed
test(logging): remove observeroutput
we're using local loggers now and the observer output is unused
1 parent 55e2717 commit 88446af

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

internal/beatcmd/logging_test.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,6 @@ import (
2727
"github.com/elastic/elastic-agent-libs/logp"
2828
)
2929

30-
func init() {
31-
// Configure tests to log at debug level, and to send
32-
// logs to logp.ObserverLogs(). It is important to not
33-
// log to files by default in tests, as logp will keep
34-
// the files open and prevent temporary directories from
35-
// being removed on Windows.
36-
logOptions = append(logOptions,
37-
logp.ToObserverOutput(),
38-
logp.WithLevel(logp.DebugLevel),
39-
)
40-
}
41-
4230
var environments = []logp.Environment{
4331
logp.DefaultEnvironment,
4432
logp.SystemdEnvironment,

0 commit comments

Comments
 (0)