We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Running the example code:
package main import ( "github.com/azer/logger" "time" ) var log = logger.New("app") func main() { log.Info("Starting at %d", 9088) log.Info("Requesting an image at foo/bar.jpg") timer := log.Timer() time.Sleep(time.Millisecond * 250) timer.End("Fetched foo/bar.jpg") log.Error("Failed to start, shutting down...") }
with version 71c896b yields the following error:
71c896b
panic: assignment to entry in nil map goroutine 1 [running]: panic(0xc58e0, 0xc820064050) /usr/local/go/src/runtime/panic.go:464 +0x3e6 /vendor/github.com/azer/logger.New(0x10baf8, 0x3, 0xc820050000) /vendor/github.com/azer/logger/logger.go:26 +0xaa main.init() /example.go:8 +0x65 exit status 2
Reverting to d8432cee resolves the issue:
d8432cee
11:39:22.887 app: Starting at 9088 11:39:22.887 app: Requesting an image at foo/bar.jpg 11:39:23.142 app(254.627113ms): Fetched foo/bar.jpg 11:39:23.142 app(!): Failed to start, shutting down...
The text was updated successfully, but these errors were encountered:
@cathalgarvey any ideas ?
Sorry, something went wrong.
@clocklear fixed by 6eca91c
No branches or pull requests
Running the example code:
with version
71c896b
yields the following error:Reverting to
d8432cee
resolves the issue:The text was updated successfully, but these errors were encountered: