Skip to content

Instantly share code, notes, and snippets.

@frankyonnetti
Last active February 17, 2021 00:43
Show Gist options
  • Select an option

  • Save frankyonnetti/01713905e603ac1b6de36a91769bc7fe to your computer and use it in GitHub Desktop.

Select an option

Save frankyonnetti/01713905e603ac1b6de36a91769bc7fe to your computer and use it in GitHub Desktop.
Drupal 7 - watchdog trace #drupal #d7 #watchdog
<?php
if (isset($log_entry['variables']) && !is_array($log_entry['variables'])) {
print json_encode(debug_backtrace());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment