Skip to content

Commit

Permalink
refactor(core): no need to increase eid
Browse files Browse the repository at this point in the history
  • Loading branch information
ilharp committed Dec 4, 2022
1 parent d9a098b commit 0c3c0f4
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/core/logger/syslogger_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,14 @@ func BuildNewSysLogger() func(i *do.Injector) (*SysLogger, error) {
_ = e.Close()
}()

var eid uint32 = 1

for {
log := <-sysLogger.c
if log == nil {
break
}

entry := fmt.Sprintf("%04d|%01d|%s", log.Ch, log.Level, adapter.adaptColor(log.Value))
_ = e.Info(eid, entry)

eid++
if eid == 1000 {
eid = 1
}
_ = e.Info(1, entry)
}
}()

Expand Down

0 comments on commit 0c3c0f4

Please sign in to comment.