mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-25 16:03:13 +00:00
remove some logging
This commit is contained in:
parent
b9296c54e2
commit
c945b9dffe
@ -5,7 +5,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#define LOG(msg) printf("%s\n",msg)
|
#define LOG(msg) printf("%s\n",msg)
|
||||||
#define TRACE(msg) printf("%s\n", msg);
|
#define TRACE(msg) //printf("%s\n", msg);
|
||||||
|
|
||||||
#define THROW(msg) return ThrowException(Exception::Error(String::New(msg)));
|
#define THROW(msg) return ThrowException(Exception::Error(String::New(msg)));
|
||||||
|
|
||||||
@ -154,7 +154,7 @@ protected:
|
|||||||
if (!connection_) {
|
if (!connection_) {
|
||||||
LOG("Connection couldn't be created");
|
LOG("Connection couldn't be created");
|
||||||
} else {
|
} else {
|
||||||
LOG("Connect created");
|
TRACE("Connect created");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PQsetnonblocking(connection_, 1) == -1) {
|
if (PQsetnonblocking(connection_, 1) == -1) {
|
||||||
@ -179,7 +179,7 @@ protected:
|
|||||||
|
|
||||||
assert(PQisnonblocking(connection_));
|
assert(PQisnonblocking(connection_));
|
||||||
|
|
||||||
LOG("Setting watchers to socket");
|
TRACE("Setting watchers to socket");
|
||||||
ev_io_set(&read_watcher_, fd, EV_READ);
|
ev_io_set(&read_watcher_, fd, EV_READ);
|
||||||
ev_io_set(&write_watcher_, fd, EV_WRITE);
|
ev_io_set(&write_watcher_, fd, EV_WRITE);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user