mirror of
https://github.com/go-eagle/eagle.git
synced 2025-09-26 20:41:26 +08:00
chore: improve print log for crontab (#105)
This commit is contained in:
@@ -3,6 +3,7 @@ package crontab
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"log"
|
||||
"time"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
@@ -97,7 +98,7 @@ func (s *Server) Start(ctx context.Context) error {
|
||||
|
||||
// Stop the crontab server
|
||||
func (s *Server) Stop(ctx context.Context) error {
|
||||
s.logger.Info("[crontab] server stopping...")
|
||||
log.Printf("[crontab] server stopping...")
|
||||
s.stop <- struct{}{}
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user