add debugging mechanism

This commit is contained in:
Matthias Pfefferle 2019-09-28 14:17:58 +02:00
parent 2e010c8ad5
commit 9fd551f07d
2 changed files with 4 additions and 1 deletions

View file

@ -61,6 +61,9 @@ function init() {
require_once dirname( __FILE__ ) . '/includes/class-hashtag.php';
\Activitypub\Hashtag::init();
require_once dirname( __FILE__ ) . '/includes/class-debug.php';
\Activitypub\Debug::init();
#require_once dirname( __FILE__ ) . '/includes/class-health-check.php';
#\Activitypub\Health_Check::init();
}

View file

@ -17,7 +17,7 @@ class Debug {
}
public static function log_remote_post_responses( $response, $url, $body, $user_id ) {
\error_log( "Request to: {$url} with response: " . \print_r( $response, 'true' ) );
\error_log( "Request to: {$url} with response: " . \print_r( $response, true ) );
}
public static function write_log( $log ) {