aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.go b/main.go
index f50866d..78fa44b 100644
--- a/main.go
+++ b/main.go
@@ -62,6 +62,11 @@ func main() {
os.Exit(1)
}
+ if ok = backend.LoadLogs(cfg); !ok {
+ slog.Info("exiting")
+ os.Exit(2)
+ }
+
r := backend.NewRouter(dev, cfg)
backend.HandleHome(r)