diff --git a/app.go b/app.go index eea2071..e809ac5 100644 --- a/app.go +++ b/app.go @@ -59,12 +59,12 @@ func (a *App) startup(ctx context.Context) { func (a *App) initLog() error { fp, err := config.LogFile() if err != nil { - return fmt.Errorf("error getting filepath for log file") + return fmt.Errorf("error getting filepath for log file: %v", err) } f, err := os.OpenFile(fp, os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0644) if err != nil { - return fmt.Errorf("error opening log file") + return fmt.Errorf("error opening log file: %v", err) } a.logInfo = log.New(f, "[info]", log.LstdFlags|log.Lshortfile)