Skip to content

Commit ffcc2fa

Browse files
Guido Gröönmrts
authored andcommitted
WE2-759 Error code only into the log file, removed message
1 parent 5c41625 commit ffcc2fa

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

examples/src/LogWriter.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class LogWriter
2727
public function add()
2828
{
2929
$code = isset($_POST["code"]) ? $_POST["code"] : "";
30-
$message = isset($_POST["message"]) ? $_POST["message"] : "";
3130

3231
// Allow only certain type error codes
3332
if ($code != "ERR_WEBEID_USER_CANCELLED" || $code != "ERR_WEBEID_EXTENSION_UNAVAILABLE") {
@@ -36,7 +35,7 @@ public function add()
3635
}
3736

3837
$logger = new Logger();
39-
$logger->error(sprintf("Code: %s Message: %s", $code, $message));
38+
$logger->error(sprintf("Code: %s", $code));
4039
echo "success";
4140
}
4241
}

examples/tpl/login.phtml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
// Log extension error
6464
let formData = new FormData();
6565
formData.append("code", error.code);
66-
formData.append("message", error.message);
6766
fetch("./logger", {method: "POST", body: formData});
6867
throw error;
6968
} finally {

0 commit comments

Comments
 (0)