From 382b99876918b1dd469cfac774484915a25d9e75 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 15 Jun 2016 09:17:45 +0800 Subject: [PATCH] [ci skip] add debug message. Signed-off-by: Bo-Yi Wu --- gorush/notification.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gorush/notification.go b/gorush/notification.go index 7ea6407..96ea7ae 100644 --- a/gorush/notification.go +++ b/gorush/notification.go @@ -143,8 +143,6 @@ func InitAPNSClient() error { var err error ext := filepath.Ext(PushConf.Ios.KeyPath) - LogAccess.Debug("certificate ext is ", ext) - switch ext { case ".p12": CertificatePemIos, err = certificate.FromP12File(PushConf.Ios.KeyPath, PushConf.Ios.Password) @@ -311,6 +309,7 @@ func GetIOSNotification(req PushNotification) *apns.Notification { // PushToIOS provide send notification to APNs server. func PushToIOS(req PushNotification) bool { + LogAccess.Debug("Start push notification for iOS") var isError bool @@ -395,6 +394,8 @@ func GetAndroidNotification(req PushNotification) gcm.HttpMessage { // PushToAndroid provide send notification to Android server. func PushToAndroid(req PushNotification) bool { + LogAccess.Debug("Start push notification for Android") + var APIKey string // check message