Log binary version and executable path on startup
This commit is contained in:
@@ -53,6 +53,9 @@ func main() {
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
exePath, _ := os.Executable()
|
||||
slog.Info("starting qfs", "version", Version, "executable", exePath)
|
||||
|
||||
resolvedLocalDBPath, err := appstate.ResolveDBPath(*localDBPath)
|
||||
if err != nil {
|
||||
slog.Error("failed to resolve local database path", "error", err)
|
||||
@@ -125,6 +128,7 @@ func main() {
|
||||
}
|
||||
|
||||
slog.Info("starting QuoteForge server",
|
||||
"version", Version,
|
||||
"host", cfg.Server.Host,
|
||||
"port", cfg.Server.Port,
|
||||
"db_user", dbUser,
|
||||
@@ -288,7 +292,7 @@ func runSetupMode(local *localdb.LocalDB) {
|
||||
})
|
||||
|
||||
addr := "127.0.0.1:8080"
|
||||
slog.Info("starting setup mode server", "address", addr)
|
||||
slog.Info("starting setup mode server", "address", addr, "version", Version)
|
||||
|
||||
srv := &http.Server{
|
||||
Addr: addr,
|
||||
|
||||
Reference in New Issue
Block a user