From 7743fc5757efb5dd2ab499a096e65c167394eb0f Mon Sep 17 00:00:00 2001 From: Ke Chen Date: Tue, 1 Aug 2023 14:50:46 +0800 Subject: [PATCH] chore(apns): add mode logs --- push/apns/init.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/push/apns/init.go b/push/apns/init.go index 8e67b61..12b22a4 100644 --- a/push/apns/init.go +++ b/push/apns/init.go @@ -14,7 +14,6 @@ var cert tls.Certificate var client *apns2.Client func init() { - log.Debug().Msg("init apns") var err error cert, err = certificate.FromPemFile(config.Config.APNSKeyPath, "") if err != nil { @@ -22,7 +21,9 @@ func init() { } if config.Config.Mode == "dev" { client = apns2.NewClient(cert).Development() + log.Debug().Msg("init apns; use development mode") } else { client = apns2.NewClient(cert).Production() + log.Debug().Msg("init apns; use production mode") } }