File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import Macro // @Macro-swift
44
55http. createServer { req, res in
66 // log request
7- console . log ( " \( req. method) \( req. url) " )
7+ req . log . log ( " \( req. method) \( req. url) " )
88
99 // set content type to HTML
1010 res. writeHead ( 200 , [ " Content-Type " : " text/html " ] )
@@ -22,5 +22,5 @@ http.createServer { req, res in
2222 res. end ( )
2323}
2424. listen ( 1337 ) { server in
25- console . log ( " Server listening on http://*:1337/ " )
25+ server . log . log ( " Server listening on http://*:1337/ " )
2626}
Original file line number Diff line number Diff line change @@ -45,5 +45,5 @@ http.createServer { req, res in
4545 _ = req. pipe ( proxiedRequest)
4646}
4747. listen ( 1337 ) { server in
48- console . log ( " Server listening on http://0.0.0.0:1337/ " )
48+ server . log . log ( " Server listening on http://0.0.0.0:1337/ " )
4949}
You can’t perform that action at this time.
0 commit comments