Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/telegram-purple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormjentsch <mtthsjntsch@gmail.com>2015-08-29 14:44:26 +0300
committermjentsch <mtthsjntsch@gmail.com>2015-08-29 14:44:26 +0300
commit8a80eeccaeb4df549f9cbe73b8ca005d17b8f1f7 (patch)
tree9d6168d1be1133b1d91a6f8fd55c931f58a5b197 /tgp-net.c
parent793b1fc0fb38e9dd906dfa83e8773f947a77e3c5 (diff)
Remove network logging temporarily
Diffstat (limited to 'tgp-net.c')
-rw-r--r--tgp-net.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tgp-net.c b/tgp-net.c
index 22b60e0..f9c275f 100644
--- a/tgp-net.c
+++ b/tgp-net.c
@@ -118,7 +118,7 @@ static void delete_connection_buffer (struct connection_buffer *b) {
}
int tgln_write_out (struct connection *c, const void *_data, int len) {
- debug ( "write_out: %d bytes\n", len);
+ // debug ( "write_out: %d bytes\n", len);
const unsigned char *data = _data;
if (!len) { return 0; }
assert (len > 0);
@@ -230,7 +230,7 @@ static void rotate_port (struct connection *c) {
static void conn_try_read (gpointer arg, gint source, PurpleInputCondition cond) {
struct connection *c = arg;
- debug ("Try read. Fd = %d\n", c->fd);
+ // debug ("Try read. Fd = %d\n", c->fd);
try_read (c);
}
@@ -250,7 +250,7 @@ static void conn_try_write (gpointer arg, gint source, PurpleInputCondition cond
static void net_on_connected (gpointer arg, gint fd, const gchar *error_message) {
struct connection *c = arg;
- debug ("connect result: %d\n", fd);
+ // debug ("connect result: %d\n", fd);
if (c->fail_ev >= 0) {
purple_timeout_remove (c->fail_ev);
@@ -374,7 +374,7 @@ static void fail_connection (struct connection *c) {
//extern FILE *log_net_f;
static void try_write (struct connection *c) {
- debug ("try write: fd = %d\n", c->fd);
+ // debug ("try write: fd = %d\n", c->fd);
int x = 0;
while (c->out_head) {
int r = write (c->fd, c->out_head->rptr, c->out_head->wptr - c->out_head->rptr);
@@ -400,7 +400,7 @@ static void try_write (struct connection *c) {
}
}
}
- debug ("Sent %d bytes to %d\n", x, c->fd);
+ // debug ("Sent %d bytes to %d\n", x, c->fd);
c->out_bytes -= x;
}
@@ -443,7 +443,7 @@ static void try_rpc_read (struct connection *c) {
}
static void try_read (struct connection *c) {
- debug ( "try read: fd = %d\n", c->fd);
+ // debug ( "try read: fd = %d\n", c->fd);
if (!c->in_tail) {
c->in_head = c->in_tail = new_connection_buffer (1 << 20);
}
@@ -478,7 +478,7 @@ static void try_read (struct connection *c) {
}
}
}
- debug ("Received %d bytes from %d\n", x, c->fd);
+ // debug ("Received %d bytes from %d\n", x, c->fd);
c->in_bytes += x;
if (x) {
try_rpc_read (c);