@@ -62,7 +62,7 @@ public function __construct($auth_key, $secret, $app_id, $options = array(), $ho
6262
6363 $ this ->settings ['host ' ] = $ host ;
6464
65- $ this ->log ('Legacy $host parameter provided: ' .
65+ $ this ->log ('INFO: Legacy $host parameter provided: ' .
6666 $ this ->settings ['scheme ' ].' host: ' .$ this ->settings ['host ' ]);
6767 }
6868
@@ -250,7 +250,7 @@ private function create_curl($domain, $s_url, $request_method = 'GET', $query_pa
250250
251251 $ full_url = $ domain .$ s_url .'? ' .$ signed_query ;
252252
253- $ this ->log ('create_curl( ' .$ full_url .' ) ' );
253+ $ this ->log ('INFO: create_curl( ' .$ full_url .' ) ' );
254254
255255 // Create or reuse existing curl handle
256256 if (null === $ this ->ch ) {
@@ -304,10 +304,10 @@ private function exec_curl($ch)
304304 $ response ['status ' ] = curl_getinfo ($ ch , CURLINFO_HTTP_CODE );
305305
306306 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 ));
308308 }
309309
310- $ this ->log ('exec_curl response: ' .print_r ($ response , true ));
310+ $ this ->log ('INFO: exec_curl response: ' .print_r ($ response , true ));
311311
312312 return $ response ;
313313 }
@@ -425,7 +425,7 @@ public function trigger($channels, $event, $data, $socket_id = null, $debug = fa
425425
426426 // json_encode might return false on failure
427427 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 ));
429429 }
430430
431431 $ post_params = array ();
@@ -443,7 +443,7 @@ public function trigger($channels, $event, $data, $socket_id = null, $debug = fa
443443
444444 $ ch = $ this ->create_curl ($ this ->ddn_domain (), $ s_url , 'POST ' , $ query_params );
445445
446- $ this ->log ('trigger POST: ' .$ post_value );
446+ $ this ->log ('INFO: trigger POST: ' .$ post_value );
447447
448448 curl_setopt ($ ch , CURLOPT_POSTFIELDS , $ post_value );
449449
@@ -490,7 +490,7 @@ public function triggerBatch($batch = array(), $debug = false, $already_encoded
490490
491491 $ ch = $ this ->create_curl ($ this ->ddn_domain (), $ s_url , 'POST ' , $ query_params );
492492
493- $ this ->log ('trigger POST: ' .$ post_value );
493+ $ this ->log ('INFO: trigger POST: ' .$ post_value );
494494
495495 curl_setopt ($ ch , CURLOPT_POSTFIELDS , $ post_value );
496496
@@ -638,7 +638,7 @@ public function notify($interests, $data = array(), $debug = false)
638638 $ query_params = array ();
639639
640640 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. ' );
642642 $ interests = array ($ interests );
643643 }
644644
@@ -655,7 +655,7 @@ public function notify($interests, $data = array(), $debug = false)
655655 $ notification_path = '/server_api/v1 ' .$ this ->settings ['base_path ' ].'/notifications ' ;
656656 $ ch = $ this ->create_curl ($ this ->notification_domain (), $ notification_path , 'POST ' , $ query_params );
657657
658- $ this ->log ('trigger POST (Native notifications): ' .$ post_value );
658+ $ this ->log ('INFO: trigger POST (Native notifications): ' .$ post_value );
659659
660660 curl_setopt ($ ch , CURLOPT_POSTFIELDS , $ post_value );
661661
0 commit comments