mirror of
https://github.com/bettercap/bettercap
synced 2025-07-10 15:23:30 -07:00
new: added new log builtin function for sync logging with prompt
This commit is contained in:
parent
acbc10d4e8
commit
d87bf8a3ba
4 changed files with 16 additions and 6 deletions
|
@ -1,5 +1,4 @@
|
|||
var RESET = "\033[0m";
|
||||
var log = console.log;
|
||||
|
||||
function R(s) {
|
||||
return "\033[31m" + s + RESET;
|
||||
|
@ -119,7 +118,7 @@ function dumpRaw(req) {
|
|||
}
|
||||
|
||||
function onRequest(req, res) {
|
||||
log( BOLD(req.Client), ">", B(req.Method), req.Hostname + req.Path + ( req.Query ? "?" + req.Query : '') );
|
||||
log( BOLD(req.Client), " > ", B(req.Method), req.Hostname + req.Path + ( req.Query ? "?" + req.Query : '') );
|
||||
|
||||
dumpHeaders(req);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue