Improve client logging.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log/slog"
|
||||
"os"
|
||||
|
||||
"bunker/client/internal/application"
|
||||
@@ -18,12 +17,17 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
slog.Info("Starting Bunker client...")
|
||||
|
||||
_ = slog.SetLogLoggerLevel(slog.LevelDebug)
|
||||
|
||||
app := application.New()
|
||||
|
||||
lgr := app.NewLogger("module", "main")
|
||||
lgr.Info(
|
||||
"Starting Bunker...",
|
||||
"version", app.Fyne().Metadata().Custom["Version"],
|
||||
"build_no", app.Fyne().Metadata().Custom["Build"],
|
||||
"commit", app.Fyne().Metadata().Custom["Commit"],
|
||||
"branch", app.Fyne().Metadata().Custom["Branch"],
|
||||
)
|
||||
|
||||
checkError(translations.Initialize(app))
|
||||
checkError(database.Initialize(app))
|
||||
checkError(options.Initialize(app))
|
||||
|
Reference in New Issue
Block a user