Skip to content

Instantly share code, notes, and snippets.

@amikitevich
Created January 24, 2016 23:58
Show Gist options
  • Save amikitevich/7bf031cd5f2cd7f4dbe7 to your computer and use it in GitHub Desktop.
Save amikitevich/7bf031cd5f2cd7f4dbe7 to your computer and use it in GitHub Desktop.
Залогировать евенты
app/Mage.php should look like:
public static function dispatchEvent($name, array $data = array())
{
// log event name
Mage::log($name, null, 'events.log', true);
Varien_Profiler::start('DISPATCH EVENT:'.$name);
$result = self::app()->dispatchEvent($name, $data);
#$result = self::registry('events')->dispatch($name, $data);
Varien_Profiler::stop('DISPATCH EVENT:'.$name);
return $result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment