chg: [CLI] Better warning messages for cake user authkey_valid

pull/9499/head
Jakub Onderka 2024-01-16 16:21:34 +01:00
parent 9627e075b3
commit 34bb0a1d19
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -57,7 +57,7 @@ class EcsLog implements CakeLogInterface
'log' => [
'level' => $type,
],
'message' => $message,
'message' => JsonTool::escapeNonUnicode($message),
];
static::writeMessage($message);