use config value for pm path

This commit is contained in:
Robin Olsen
2026-03-10 13:44:59 +01:00
parent e4b6074303
commit 4c826193ee
6 changed files with 12 additions and 17 deletions

View File

@@ -38,7 +38,7 @@ func defaultBuilder(ctx context.Context, config Config) *AppBuilder {
}
func defaultLogger(config Config, lifecycle *Lifecycle) *slog.Logger {
statsDir := filepath.Dir(config.StatisticsStoragePath)
statsDir := filepath.Dir(config.AppDir + "/stats.json")
if statsDir == "" {
statsDir = "."
}