]> git.mxchange.org Git - core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 3 Mar 2023 08:06:21 +0000 (09:06 +0100)
committerRoland Häder <roland@mxchange.org>
Fri, 3 Mar 2023 08:06:21 +0000 (09:06 +0100)
- moved logging level to wrong

framework/main/middleware/debug/class_DebugMiddleware.php

index c83389f0faa9bff04ac8641b6c9da10eed800b03..53a2ece66208bb4d9bd4b7864d7fff75931fdd74 100644 (file)
@@ -132,31 +132,31 @@ class DebugMiddleware extends BaseMiddleware implements Registerable, Logger {
                if (isset($backtrace[4]) && $backtrace[3]['function'] == 'partialStub') {
                        // Prepend class::function:line from 2nd element
                        //* NOISY-DEBUG: */ printf('[%s:%d]: partialStub() was invoked ...' . PHP_EOL, __METHOD__, __LINE__);
-                       $message = sprintf('[%s::%s:%d]: [%s] %s',
+                       $message = sprintf('[%s] [%s::%s:%d]: %s',
+                               $logLevel,
                                $backtrace[4]['class'],
                                $backtrace[4]['function'],
                                (isset($backtrace[4]['line']) ? $backtrace[4]['line'] : '0'),
-                               $logLevel,
                                $message
                        );
                } elseif (isset($backtrace[3]) && $backtrace[2]['function'] == 'debugOutput') {
                        // Prepend class::function:line from 2nd element
                        //* NOISY-DEBUG: */ printf('[%s:%d]: debugOutput() was invoked ...' . PHP_EOL, __METHOD__, __LINE__);
-                       $message = sprintf('[%s::%s:%d]: [%s] %s',
+                       $message = sprintf('[%s] [%s::%s:%d]: %s',
+                               $logLevel,
                                $backtrace[3]['class'],
                                $backtrace[3]['function'],
                                (isset($backtrace[3]['line']) ? $backtrace[3]['line'] : '0'),
-                               $logLevel,
                                $message
                        );
                } else {
                        // Prepend class::function:line from 2nd element
                        //* NOISY-DEBUG: */ printf('[%s:%d]: Ordinary invocation ...' . PHP_EOL, __METHOD__, __LINE__);
-                       $message = sprintf('[%s::%s:%d]: [%s] %s',
+                       $message = sprintf('[%s] [%s::%s:%d]: %s',
+                               $logLevel,
                                $backtrace[2]['class'],
                                $backtrace[2]['function'],
                                (isset($backtrace[2]['line']) ? $backtrace[2]['line'] : '0'),
-                               $logLevel,
                                $message
                        );
                }