@@ -61,23 +61,21 @@ public function execute(Observer $observer)
6161 $ state = $ order ->getState ();
6262 $ currentState = $ order ->getOrigData ('state ' );
6363
64- if ($ state <> $ currentState ) {
65- $ incrementId = $ order ->getIncrementId ();
64+ $ incrementId = $ order ->getIncrementId ();
6665
67- $ this ->logger ->debug ("Order {$ incrementId } state change from {$ currentState } to {$ state }" );
68- $ this ->logger ->debug ("Request URL: {$ this ->url ->getCurrentUrl ()}" );
66+ $ this ->logger ->debug ("Order {$ incrementId } state change from {$ currentState } to {$ state }" );
67+ $ this ->logger ->debug ("Request URL: {$ this ->url ->getCurrentUrl ()}" );
6968
70- list ($ debugBacktraceLog , $ nonMagentoModules ) = $ this ->getDebugBacktrace ();
69+ list ($ debugBacktraceLog , $ nonMagentoModules ) = $ this ->getDebugBacktrace ();
7170
72- if (empty ($ nonMagentoModules ) == false ) {
73- $ nonMagentoModulesList = implode (', ' , array_keys ($ nonMagentoModules ));
74- $ this ->logger ->debug ("WARNING: non Magento modules found on backtrace: " .
75- $ nonMagentoModulesList );
76- }
77-
78- $ debugBacktraceLog = implode ("\n" , $ debugBacktraceLog );
79- $ this ->logger ->debug ("Backtrace: \n{$ debugBacktraceLog }\n\n" );
71+ if (empty ($ nonMagentoModules ) == false ) {
72+ $ nonMagentoModulesList = implode (', ' , array_keys ($ nonMagentoModules ));
73+ $ this ->logger ->debug ("WARNING: non Magento modules found on backtrace: " .
74+ $ nonMagentoModulesList );
8075 }
76+
77+ $ debugBacktraceLog = implode ("\n" , $ debugBacktraceLog );
78+ $ this ->logger ->debug ("Backtrace: \n{$ debugBacktraceLog }\n\n" );
8179 }
8280 } catch (\Exception $ e ) {
8381 $ this ->logger ->debug ("State debug failed: " . $ e ->getMessage ());
0 commit comments