aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 19:52:00 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 19:52:00 +0200
commit8b249c9ce8bd1c351daf80c6c9b095fb1bccafe2 (patch)
treee56eddae167c89ae3a8a885303ca876d1a439a61 /main.go
parentc000d9482e183f74b6237ecaeb7f06c0862413de (diff)
feat(backend): load log files
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)