setup logger
This commit is contained in:
parent
a28bbfa991
commit
456c385ab9
1 changed files with 3 additions and 1 deletions
|
@ -29,6 +29,8 @@ func runCacheServer(ctx context.Context, configFile *string, cacheArgs *cacheSer
|
|||
return fmt.Errorf("invalid configuration: %w", err)
|
||||
}
|
||||
|
||||
initLogging(cfg)
|
||||
|
||||
var (
|
||||
dir = cfg.Cache.Dir
|
||||
host = cfg.Cache.Host
|
||||
|
@ -56,7 +58,7 @@ func runCacheServer(ctx context.Context, configFile *string, cacheArgs *cacheSer
|
|||
return err
|
||||
}
|
||||
|
||||
log.Infof("cache server is listening: %v", cacheHandler.ExternalURL())
|
||||
log.Infof("cache server is listening on %v", cacheHandler.ExternalURL())
|
||||
|
||||
c := make(chan os.Signal, 1)
|
||||
signal.Notify(c, os.Interrupt)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue