-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Include handler errors in the log file #377
Comments
I will check @JustAnotherArchivist , thanks for reporting. |
I would suggest to chose either stderr or log, but not both. |
We should only rely on the logger instantiated in the cmd package: https://github.com/dutchcoders/transfer.sh/blob/master/cmd/cmd.go#L294 This will either use stdout or the log file if set ( Lines 160 to 176 in 49c6d7e
The calls to |
I realised today that many messages only get logged to stderr, not to the log file. In particular, this includes all errors in the handlers, e.g. errors on reading from the storage (i.e. the
log.Printf
calls inhandlers.go
). I'd like to suggest having those both on stderr and in the log file (if one is specified).The text was updated successfully, but these errors were encountered: