Created
January 24, 2016 23:58
-
-
Save amikitevich/7bf031cd5f2cd7f4dbe7 to your computer and use it in GitHub Desktop.
Залогировать евенты
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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