GC_Community_Events::maybe_log_events_response()
最后更新于:2021-11-26 23:06:17
GC_Community_Events::maybe_log_events_response( string$message, array$details)Logs responses to Events API requests.
参数
- $message
-
(string) (Required) A description of what occurred.
- $details
-
(array) (Required) Details that provide more context for the log entry.
源文件
文件: gc-admin/includes/class-gc-community-events.php
protected function maybe_log_events_response( $message, $details ) {
_deprecated_function( __METHOD__, '4.9.0' );
if ( ! GC_DEBUG_LOG ) {
return;
}
error_log(
sprintf(
'%s: %s. Details: %s',
__METHOD__,
trim( $message, '.' ),
gc_json_encode( $details )
)
);
}