mirror of
https://github.com/simon-ding/polaris.git
synced 2026-02-06 07:00:48 +08:00
add log
This commit is contained in:
@@ -5,8 +5,11 @@ import (
|
||||
"polaris/log"
|
||||
)
|
||||
|
||||
func (c *Engine) housekeeping() error {
|
||||
func (c *Engine) housekeeping() (err error) {
|
||||
log.Infof("start housekeeping tasks...")
|
||||
defer func() {
|
||||
log.Infof("housekeeping tasks completed. err: %v", err)
|
||||
}()
|
||||
|
||||
if err := c.checkDbScraps(); err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user