We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d97ec3e commit c4cd26aCopy full SHA for c4cd26a
php-amqp/emit_log_direct.php
@@ -12,8 +12,7 @@
12
$channel = new AMQPChannel($connection);
13
14
15
-$routing_key = $severity = $argv[1];
16
-if(empty($severity)) $severity = 'info';
+$routing_key = $severity = isset($argv[1]) && !empty($argv[1]) ? $argv[1] : 'info';
17
18
$message = implode(' ',array_slice($argv, 2));
19
if(empty($message)) $message = 'Hello World!';
0 commit comments