HTTP request logging format
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user