[ci skip] add debug message.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-06-15 09:17:45 +08:00
parent 06ae84a1a0
commit 382b998769
1 changed files with 3 additions and 2 deletions

View File

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