function authcache_debug_log in Authenticated User Page Caching (Authcache) 7.2
Log a message to the debug widget and / or watchdog.
6 calls to authcache_debug_log()
- authcache_debug_authcache_canceled in modules/
authcache_debug/ authcache_debug.module - Implements hook_authcache_canceled().
- authcache_debug_authcache_excluded in modules/
authcache_debug/ authcache_debug.module - Implements hook_authcache_excluded().
- authcache_debug_authcache_precluded in modules/
authcache_debug/ authcache_debug.module - Implements hook_authcache_precluded().
- authcache_p13n_authcache_debug_info in modules/
authcache_p13n/ authcache_p13n.module - Implements hook_authcache_debug_info().
- authcache_varnish_authcache_debug_info in modules/
authcache_varnish/ authcache_varnish.module - Implements hoook_authcache_debug_info().
File
- modules/
authcache_debug/ authcache_debug.module, line 166 - Debug widget for Authcache.
Code
function authcache_debug_log($label = NULL, $message = NULL) {
$messages =& drupal_static(__FUNCTION__);
if (!isset($messages)) {
$messages = array();
}
if ($label && $message) {
$messages[] = array(
'label' => $label,
'message' => $message,
);
if (_authcache_debug_watchdog_enabled()) {
watchdog('Authcache', '@label: @message', array(
'@label' => $label,
'@message' => $message,
));
}
}
return $messages;
}