getMessage(), $throwable->getFile(), $throwable->getLine() ), $context, 'error' ); Helper::log( $throwable->getTraceAsString(), $context, 'error' ); } /** * Log an upstream body that we refused to pass through, with the * client-visible detail already removed. * * @param array $body * @param string $context * @return void */ public static function upstream( $body, $context = '' ) { if ( ! is_array( $body ) ) { Helper::log( (string) $body, $context, 'error' ); return; } Helper::log( wp_json_encode( $body ), $context, 'error' ); } }