File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 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 {
You can’t perform that action at this time.
0 commit comments