Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit a5686a9

Browse files
author
Nathan Shaaban
committed
added requested url to log
1 parent 3394465 commit a5686a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/logError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
function log_error($human_readable,$admin_readable="",$data="") {
44
$id=time().hash("sha256",$human_readable.$admin_readable.$data.time());
55
$e=new Exception();
6-
error_log("ERROR ".$id.": ".$human_readable." (".$admin_readable.")". $data. " Stack trace: ".$e->getTraceAsString());
6+
error_log("ERROR ".$id.": when visiting ".$_SERVER[REQUEST_URI]." ".$human_readable." (".$admin_readable.")". $data. " Stack trace: ".$e->getTraceAsString());
77
echo("An ERROR has occurred, please tell the website administrator this code: ".$id);
88
http_response_code(500);
99
exit(500);

0 commit comments

Comments
 (0)