[ci skip] add debug message.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
06ae84a1a0
commit
382b998769
|
@ -143,8 +143,6 @@ func InitAPNSClient() error {
|
||||||
var err error
|
var err error
|
||||||
ext := filepath.Ext(PushConf.Ios.KeyPath)
|
ext := filepath.Ext(PushConf.Ios.KeyPath)
|
||||||
|
|
||||||
LogAccess.Debug("certificate ext is ", ext)
|
|
||||||
|
|
||||||
switch ext {
|
switch ext {
|
||||||
case ".p12":
|
case ".p12":
|
||||||
CertificatePemIos, err = certificate.FromP12File(PushConf.Ios.KeyPath, PushConf.Ios.Password)
|
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.
|
// PushToIOS provide send notification to APNs server.
|
||||||
func PushToIOS(req PushNotification) bool {
|
func PushToIOS(req PushNotification) bool {
|
||||||
|
LogAccess.Debug("Start push notification for iOS")
|
||||||
|
|
||||||
var isError bool
|
var isError bool
|
||||||
|
|
||||||
|
@ -395,6 +394,8 @@ func GetAndroidNotification(req PushNotification) gcm.HttpMessage {
|
||||||
|
|
||||||
// PushToAndroid provide send notification to Android server.
|
// PushToAndroid provide send notification to Android server.
|
||||||
func PushToAndroid(req PushNotification) bool {
|
func PushToAndroid(req PushNotification) bool {
|
||||||
|
LogAccess.Debug("Start push notification for Android")
|
||||||
|
|
||||||
var APIKey string
|
var APIKey string
|
||||||
|
|
||||||
// check message
|
// check message
|
||||||
|
|
Loading…
Reference in New Issue