Skip to content

Commit

Permalink
Flip status code and request path in output log
Browse files Browse the repository at this point in the history
  • Loading branch information
tong committed Dec 1, 2023
1 parent 0766c53 commit 9eae152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ private function main() {
if( Std.isOfType( req.socket, TCPSocket ) ) {
var tcp : wtri.net.Socket.TCPSocket = cast req.socket;
var peer = tcp.socket.peer();
log( '${peer.host} - ${req.method} ${req.path} - ${res.code}' );
log( '${peer.host} - ${req.method} - ${res.code} - ${req.path}' );
} else {
log( '${req.method} ${req.path} - ${res.code}' );
log( '${req.method} - ${res.code} - ${req.path}' );
}
}
}).listen( port, host, uv, maxConnections );
Expand Down

0 comments on commit 9eae152

Please sign in to comment.