diff options
Diffstat (limited to 'svc/init.go')
-rw-r--r-- | svc/init.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/svc/init.go b/svc/init.go index b5f4061..00e107b 100644 --- a/svc/init.go +++ b/svc/init.go @@ -72,12 +72,15 @@ var remoteRegistries = &RemoteRegistries{ // the parsed landing page and the stylesheet. var staticCache = &staticAssets{} +// Logs an error that should cause a catastrophic +// failure of getwtxt func errFatal(context string, err error) { if err != nil { log.Fatalf(context+"%v\n", err.Error()) } } +// Logs non-fatal errors. func errLog(context string, err error) { if err != nil { log.Printf(context+"%v\n", err.Error()) @@ -101,6 +104,7 @@ func initSvc() { watchForInterrupt() } +// Responds to some command-line flags func checkFlags() { pflag.Parse() if *flagVersion { |