Skip to content

Commit

Permalink
Debug windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerHelmuth committed May 9, 2024
1 parent 83f90b1 commit c3b7488
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion otelcol/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ func (col *Collector) Run(ctx context.Context) error {
}
}
}
logger.Warn("unable to resolve configuration", zap.Error(err))

return err
}
Expand Down
2 changes: 1 addition & 1 deletion otelcol/collector_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func (w windowsEventLogCore) Sync() error {

func withWindowsCore(elog *eventlog.Log, serviceConfig **service.Config) func(zapcore.Core) zapcore.Core {
return func(core zapcore.Core) zapcore.Core {
if serviceConfig != nil {
if serviceConfig != nil && *serviceConfig != nil {
for _, output := range (*serviceConfig).Telemetry.Logs.OutputPaths {
if output != "stdout" && output != "stderr" {
// A log file was specified in the configuration, so we should not use the Windows Event Log
Expand Down

0 comments on commit c3b7488

Please sign in to comment.