mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
Replace some printf() in src/net with asserts
This commit is contained in:
1 parent
f99fbc61e1
commit
2819e3bcb8
2 files changed
+3
-7
No files matched your search
+1
-6
@@ -113,11 +113,7 @@ Connection::Init (void)
|
||||
Connection::~Connection ()
|
||||
{
|
||||
static int i = 0;
|
||||
if (socket_.fd > 0) {
|
||||
printf("%d garbage collecting open Connection : %d\n", i++, socket_.fd);
|
||||
printf(" socket->read_action: %p\n", socket_.read_action);
|
||||
printf(" socket->write_action: %p\n", socket_.write_action);
|
||||
}
|
||||
assert(socket_.fd < 0 && "garbage collecting open Connection");
|
||||
ForceClose();
|
||||
}
|
||||
|
||||
@@ -180,7 +176,6 @@ Connection::Connect (const Arguments& args)
|
||||
return ThrowException(String::New("Must specify a port."));
|
||||
|
||||
String::AsciiValue port_sv(args[0]->ToString());
|
||||
if (connection->port_) printf("connection->port_ = '%s'\n", connection->port_);
|
||||
assert(connection->port_ == NULL);
|
||||
connection->port_ = strdup(*port_sv);
|
||||
|
||||
|
||||
Reference in new issue
Block a user