Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logger: no such file or directory #96

Merged
merged 2 commits into from
Jun 13, 2023
Merged

Conversation

baytuch
Copy link
Contributor

@baytuch baytuch commented Mar 10, 2023

{"level":"error","error":"open : no such file or directory","time":"2023-03-10T00:29:08-08:00","message":"Failed to create MultiLogger"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xee7b54]

goroutine 8 [running]:
github.com/rs/zerolog.(*Logger).should(0x1c?, 0x45?)
/home/baytuch/go/pkg/mod/github.com/rs/zerolog@v1.14.3/log.go:405 +0x14
github.com/rs/zerolog.(*Logger).newEvent(0x0, 0x1, 0x0)
/home/baytuch/go/pkg/mod/github.com/rs/zerolog@v1.14.3/log.go:387 +0x34
github.com/rs/zerolog.(*Logger).Info(...)
/home/baytuch/go/pkg/mod/github.com/rs/zerolog@v1.14.3/log.go:277
github.com/kiwiirc/plugin-fileuploader/server.(*RunContext).runLoop(0xc000158900)
/home/baytuch/plugin-fileuploader/server/server.go:99 +0x358
created by github.com/kiwiirc/plugin-fileuploader/server.(*RunContext).Run
/home/baytuch/plugin-fileuploader/server/server.go:43 +0x97

When I try write log to file in the absolute path:
[[Loggers]]
#Level = "info"
Level = "debug"
Format = "pretty"
Output = "file:/var/log/webgate/fileuploader.log"
#Output = "stderr:"

@ItsOnlyBinary ItsOnlyBinary merged commit 75608f6 into kiwiirc:master Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants