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