mirror of https://github.com/MISP/MISP
chg: [CLI] Better warning messages for cake user authkey_valid
parent
9627e075b3
commit
34bb0a1d19
|
@ -248,7 +248,7 @@ class UserShell extends AppShell
|
|||
$authkey = trim($authkey);
|
||||
if (strlen($authkey) !== 40) {
|
||||
echo "0\n"; // authkey is not in valid format
|
||||
$this->log("Authkey in incorrect format provided.", LOG_WARNING);
|
||||
$this->log("Authkey in incorrect format provided, expected 40 chars long string, $authkey provided.", LOG_WARNING);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ class EcsLog implements CakeLogInterface
|
|||
'log' => [
|
||||
'level' => $type,
|
||||
],
|
||||
'message' => $message,
|
||||
'message' => JsonTool::escapeNonUnicode($message),
|
||||
];
|
||||
|
||||
static::writeMessage($message);
|
||||
|
|
Loading…
Reference in New Issue