diff options
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/config/logger.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/config/logger.go b/pkg/config/logger.go index a4a979a..d2d1bca 100644 --- a/pkg/config/logger.go +++ b/pkg/config/logger.go @@ -28,7 +28,7 @@ func ConfigureLogger(logPath string) (io.Closer, error) { if _, err := os.Stat(dir); err != nil { if os.IsNotExist(err) { err := os.MkdirAll(dir, 0700) - if err == nil { + if err != nil { log.Println("ERROR: cannot create data dir:", dir) } } |