getLiteDebuggingInfo(); $notification = new Notification($message); $notification->context = $context; $notification->flags = 0; try { Manager::notify(Common::getRandomString(), $notification); } catch (Zend_Session_Exception $e) { // Can happen if this handler is enabled in CLI // Silently ignore the error. } } private function getLiteDebuggingInfo() { $info = [ 'Module' => Common::getRequestVar('module', false), 'Action' => Common::getRequestVar('action', false), 'Method' => Common::getRequestVar('method', false), 'Trigger' => Common::getRequestVar('trigger', false), 'In CLI mode' => Common::isPhpCliMode() ? 'true' : 'false', ]; $parts = []; foreach ($info as $title => $value) { if (empty($value)) { continue; } $parts[] = "$title: $value"; } if (empty($parts)) { return ""; } return "\n(" . implode(', ', $parts) . ")"; } }