mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 21:57:44 +03:00
Update dlog
This commit is contained in:
parent
fd9291b240
commit
a64f90e1ba
2 changed files with 3 additions and 5 deletions
6
vendor/github.com/jedisct1/dlog/sysdeps_windows.go
generated
vendored
6
vendor/github.com/jedisct1/dlog/sysdeps_windows.go
generated
vendored
|
@ -7,10 +7,8 @@ type systemLogger struct {
|
|||
}
|
||||
|
||||
func newSystemLogger(appName string, facility string) (*systemLogger, error) {
|
||||
eventlog.InstallAsEventCreate(appName, eventlog.Error|eventlog.Warning|eventlog.Info)
|
||||
var eventLogger *eventlog.Log
|
||||
var err error
|
||||
if eventLogger, err = eventlog.Open(appName); err != nil {
|
||||
eventLogger, err := eventlog.Open(appName)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &systemLogger{inner: eventLogger}, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue