chore: improve print log for crontab (#105)

This commit is contained in:
Richard
2023-08-11 17:09:59 +08:00
committed by GitHub
parent 77a85538bf
commit bd06cf6624

View File

@@ -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
}