mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-05 14:17:36 +03:00
Update dlog
This commit is contained in:
parent
fd9291b240
commit
a64f90e1ba
2 changed files with 3 additions and 5 deletions
2
Gopkg.lock
generated
2
Gopkg.lock
generated
|
@ -67,7 +67,7 @@
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "github.com/jedisct1/dlog"
|
name = "github.com/jedisct1/dlog"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
revision = "b4b1aa34ca8400126287cfab55c7931e8f37f7de"
|
revision = "0d0a83a16acaa8b0ef7bc59ede730ef3581d5b7b"
|
||||||
version = "0.1"
|
version = "0.1"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
|
|
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) {
|
func newSystemLogger(appName string, facility string) (*systemLogger, error) {
|
||||||
eventlog.InstallAsEventCreate(appName, eventlog.Error|eventlog.Warning|eventlog.Info)
|
eventLogger, err := eventlog.Open(appName)
|
||||||
var eventLogger *eventlog.Log
|
if err != nil {
|
||||||
var err error
|
|
||||||
if eventLogger, err = eventlog.Open(appName); err != nil {
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return &systemLogger{inner: eventLogger}, nil
|
return &systemLogger{inner: eventLogger}, nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue