You are here

function messaging_debug_log in Messaging 6.2

Same name and namespace in other branches
  1. 6.3 messaging_debug/messaging_debug.module \messaging_debug_log()

Messaging debug logs

1 call to messaging_debug_log()
messaging_debug in ./messaging.module
Short hand for debug logs
1 string reference to 'messaging_debug_log'
messaging_debug in ./messaging.module
Short hand for debug logs

File

messaging_debug/messaging_debug.module, line 311
Simple messaging using html page. Messaging method plug-in

Code

function messaging_debug_log($txt = NULL, $variables = NULL) {

  // Sometimes we are passing objects as variables, we need to make sure they are not by reference
  // We can let this be for normal logs but for debugging we want accurate unique data on each stage
  if ($variables) {
    foreach ($variables as $key => $value) {
      if (is_object($value)) {
        $variables[$key] = clone $value;
      }
    }
  }
  return _messaging_log('debug', $txt, $variables);
}