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