You are here

function _sassy_watchdog in Sassy 7.2

Handler for @warn/@debug directive callbacks.

2 calls to _sassy_watchdog()
sassy_watchdog_debug in ./sassy.module
Callback for @debug directive.
sassy_watchdog_warn in ./sassy.module
Callback for @warn directive.

File

./sassy.module, line 102

Code

function _sassy_watchdog($message, $context, $type, $level) {
  $vars = array(
    '%type' => '@' . $type,
    '%line' => $context->node->token->line,
    '%message' => $message,
  );
  $message = '%type on line %line: %message';
  $file = $context->node->token->filename;
  watchdog('Sassy', $message, $vars, $level, l($file, $file));
}