mirror of
https://github.com/prymitive/karma
synced 2026-08-23 11:56:20 +00:00
fix(backend): fix invalid error formatting
This commit is contained in:
@@ -95,18 +95,18 @@ func (config *configSchema) Read() {
|
||||
// HOST and PORT is used by gin
|
||||
err = v.BindEnv("listen.address", "HOST")
|
||||
if err != nil {
|
||||
log.Errorf("Failed to bind listen.address config key to the HOST env variable", err)
|
||||
log.Errorf("Failed to bind listen.address config key to the HOST env variable: %s", err)
|
||||
}
|
||||
|
||||
err = v.BindEnv("listen.port", "PORT")
|
||||
if err != nil {
|
||||
log.Errorf("Failed to bind listen.port config key to the PORT env variable", err)
|
||||
log.Errorf("Failed to bind listen.port config key to the PORT env variable: %s", err)
|
||||
}
|
||||
|
||||
// raven-go expects this
|
||||
err = v.BindEnv("sentry.private", "SENTRY_DSN")
|
||||
if err != nil {
|
||||
log.Errorf("Failed to bind sentry.private config key to the SENTRY_DSN env variable", err)
|
||||
log.Errorf("Failed to bind sentry.private config key to the SENTRY_DSN env variable: %s", err)
|
||||
}
|
||||
|
||||
configFile := v.GetString("config.file")
|
||||
|
||||
Reference in New Issue
Block a user