@@ -62,7 +62,7 @@ public function __construct($auth_key, $secret, $app_id, $options = array(), $ho
62
62
63
63
$ this ->settings ['host ' ] = $ host ;
64
64
65
- $ this ->log ('Legacy $host parameter provided: ' .
65
+ $ this ->log ('INFO: Legacy $host parameter provided: ' .
66
66
$ this ->settings ['scheme ' ].' host: ' .$ this ->settings ['host ' ]);
67
67
}
68
68
@@ -250,7 +250,7 @@ private function create_curl($domain, $s_url, $request_method = 'GET', $query_pa
250
250
251
251
$ full_url = $ domain .$ s_url .'? ' .$ signed_query ;
252
252
253
- $ this ->log ('create_curl( ' .$ full_url .' ) ' );
253
+ $ this ->log ('INFO: create_curl( ' .$ full_url .' ) ' );
254
254
255
255
// Create or reuse existing curl handle
256
256
if (null === $ this ->ch ) {
@@ -304,10 +304,10 @@ private function exec_curl($ch)
304
304
$ response ['status ' ] = curl_getinfo ($ ch , CURLINFO_HTTP_CODE );
305
305
306
306
if ($ response ['body ' ] === false || $ response ['status ' ] < 200 || 400 <= $ response ['status ' ]) {
307
- $ this ->log ('exec_curl error: ' .curl_error ($ ch ));
307
+ $ this ->log ('ERROR: exec_curl error: ' .curl_error ($ ch ));
308
308
}
309
309
310
- $ this ->log ('exec_curl response: ' .print_r ($ response , true ));
310
+ $ this ->log ('INFO: exec_curl response: ' .print_r ($ response , true ));
311
311
312
312
return $ response ;
313
313
}
@@ -425,7 +425,7 @@ public function trigger($channels, $event, $data, $socket_id = null, $debug = fa
425
425
426
426
// json_encode might return false on failure
427
427
if (!$ data_encoded ) {
428
- $ this ->Log ('Failed to perform json_encode on the the provided data: ' .print_r ($ data , true ));
428
+ $ this ->Log ('ERROR: Failed to perform json_encode on the the provided data: ' .print_r ($ data , true ));
429
429
}
430
430
431
431
$ post_params = array ();
@@ -443,7 +443,7 @@ public function trigger($channels, $event, $data, $socket_id = null, $debug = fa
443
443
444
444
$ ch = $ this ->create_curl ($ this ->ddn_domain (), $ s_url , 'POST ' , $ query_params );
445
445
446
- $ this ->log ('trigger POST: ' .$ post_value );
446
+ $ this ->log ('INFO: trigger POST: ' .$ post_value );
447
447
448
448
curl_setopt ($ ch , CURLOPT_POSTFIELDS , $ post_value );
449
449
@@ -490,7 +490,7 @@ public function triggerBatch($batch = array(), $debug = false, $already_encoded
490
490
491
491
$ ch = $ this ->create_curl ($ this ->ddn_domain (), $ s_url , 'POST ' , $ query_params );
492
492
493
- $ this ->log ('trigger POST: ' .$ post_value );
493
+ $ this ->log ('INFO: trigger POST: ' .$ post_value );
494
494
495
495
curl_setopt ($ ch , CURLOPT_POSTFIELDS , $ post_value );
496
496
@@ -638,7 +638,7 @@ public function notify($interests, $data = array(), $debug = false)
638
638
$ query_params = array ();
639
639
640
640
if (is_string ($ interests )) {
641
- $ this ->log ('->notify received string interests " ' .$ interests .'". Converting to array. ' );
641
+ $ this ->log ('INFO: ->notify received string interests " ' .$ interests .'". Converting to array. ' );
642
642
$ interests = array ($ interests );
643
643
}
644
644
@@ -655,7 +655,7 @@ public function notify($interests, $data = array(), $debug = false)
655
655
$ notification_path = '/server_api/v1 ' .$ this ->settings ['base_path ' ].'/notifications ' ;
656
656
$ ch = $ this ->create_curl ($ this ->notification_domain (), $ notification_path , 'POST ' , $ query_params );
657
657
658
- $ this ->log ('trigger POST (Native notifications): ' .$ post_value );
658
+ $ this ->log ('INFO: trigger POST (Native notifications): ' .$ post_value );
659
659
660
660
curl_setopt ($ ch , CURLOPT_POSTFIELDS , $ post_value );
661
661
0 commit comments