HTTP request logging format

This commit is contained in:
peter
2020-10-02 18:42:46 +02:00
parent 1765c2eabc
commit 7e2c1d5761
4 changed files with 16 additions and 5 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ export class FrontworkAdmin
try{
const filepath = Path.join(__dirname, distFolder, 'browser', decodeURIComponent(req.path))
if(!existsSync(filepath)){
throw new Error("Bad file access: "+filepath)
throw new Error("FAILED REQUEST "+filepath+ " FROM "+req.ip)
}
res.sendFile(filepath)
res.status(200)