Move log cleaner from core to base module
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
package core
|
package base
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
@@ -38,5 +38,7 @@ func start() error {
|
|||||||
log.Warningf("core: failed to load persisted metrics from db: %s", err)
|
log.Warningf("core: failed to load persisted metrics from db: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
registerLogCleaner()
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,8 +68,6 @@ func start() error {
|
|||||||
return fmt.Errorf("failed to start plattform-specific components: %w", err)
|
return fmt.Errorf("failed to start plattform-specific components: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
registerLogCleaner()
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user