Skip to content

Commit 9fd551f

Browse files
committed
add debugging mechanism
1 parent 2e010c8 commit 9fd551f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

activitypub.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ function init() {
6161
require_once dirname( __FILE__ ) . '/includes/class-hashtag.php';
6262
\Activitypub\Hashtag::init();
6363

64+
require_once dirname( __FILE__ ) . '/includes/class-debug.php';
65+
\Activitypub\Debug::init();
66+
6467
#require_once dirname( __FILE__ ) . '/includes/class-health-check.php';
6568
#\Activitypub\Health_Check::init();
6669
}

includes/class-debug.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static function init() {
1717
}
1818

1919
public static function log_remote_post_responses( $response, $url, $body, $user_id ) {
20-
\error_log( "Request to: {$url} with response: " . \print_r( $response, 'true' ) );
20+
\error_log( "Request to: {$url} with response: " . \print_r( $response, true ) );
2121
}
2222

2323
public static function write_log( $log ) {

0 commit comments

Comments
 (0)