mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Load persisted metrics later
This commit is contained in:
parent
bb75b0962e
commit
6486f02bac
1 changed files with 5 additions and 5 deletions
10
core/core.go
10
core/core.go
|
@ -63,11 +63,6 @@ func prep() error {
|
|||
return err
|
||||
}
|
||||
|
||||
// Enable persistent metrics.
|
||||
if err := metrics.EnableMetricPersistence("core:metrics/storage"); err != nil {
|
||||
log.Warningf("core: failed to enable persisted metrics: %s", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -76,6 +71,11 @@ func start() error {
|
|||
return fmt.Errorf("failed to start plattform-specific components: %w", err)
|
||||
}
|
||||
|
||||
// Enable persistent metrics.
|
||||
if err := metrics.EnableMetricPersistence("core:metrics/storage"); err != nil {
|
||||
log.Warningf("core: failed to enable persisted metrics: %s", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue