cmd: no context + logging for config parsing

This commit is contained in:
Christian Schwarz
2017-09-22 14:02:07 +02:00
parent af2ff08940
commit e87ce3f7cf
5 changed files with 9 additions and 17 deletions
+1 -3
View File
@@ -4,7 +4,6 @@ import (
"fmt"
"os"
"context"
"github.com/ftrvxmtrx/fd"
"github.com/spf13/cobra"
"io"
@@ -31,8 +30,7 @@ func cmdStdinServer(cmd *cobra.Command, args []string) {
os.Exit(1)
}
ctx := context.WithValue(context.Background(), contextKeyLog, log)
conf, err := ParseConfig(ctx, rootArgs.configFile)
conf, err := ParseConfig(rootArgs.configFile)
if err != nil {
log.Printf("error parsing config: %s", err)
die()