Permalink
Browse files

Clean up logging

  • Loading branch information...
1 parent adfb8a7 commit 930d1c6a359d31712c5ddc64b652ce504e7a3436 @creationix creationix committed Mar 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 net.can
View
@@ -39,9 +39,8 @@ ClientPrototype.end = (self) {
ServerPrototype = {}
ServerPrototype.listen = (self, port, host, callback) {
- p(self, port, host, callback)
+ p("ServerPrototype.listen", self, port, host, callback)
if (!host) host = "0.0.0.0"
- print("bind", host, port)
check(self.socket:bind(host, port))
check(self.listen(128, (status) {
check(status)
@@ -69,6 +68,7 @@ ServerPrototype.listen = (self, port, host, callback) {
}
createServer = function (onConnection) {
+ p("createServer", onConnection)
server = new ServerPrototype
socket = Tcp.create()
server.socket = socket

0 comments on commit 930d1c6

Please sign in to comment.