From 0310deb225cad21c458fb32fd589027e3f844735 Mon Sep 17 00:00:00 2001 From: Sven-Haegar Koch Date: Fri, 26 Mar 2010 17:25:18 +0100 Subject: [PATCH] Demote all LOG_EMERG to LOG_ERR, spamming all xterms is bad. --- src/net_setup.c | 4 ++-- src/net_socket.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/net_setup.c b/src/net_setup.c index 597c3cb..c2ae649 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -498,7 +498,7 @@ bool setup_myself(void) { EV_READ|EV_PERSIST, handle_new_meta_connection, NULL); if(event_add(&listen_socket[listen_sockets].ev_tcp, NULL) < 0) { - logger(LOG_EMERG, "event_add failed: %s", strerror(errno)); + logger(LOG_ERR, "event_add failed: %s", strerror(errno)); abort(); } @@ -507,7 +507,7 @@ bool setup_myself(void) { EV_READ|EV_PERSIST, handle_incoming_vpn_data, NULL); if(event_add(&listen_socket[listen_sockets].ev_udp, NULL) < 0) { - logger(LOG_EMERG, "event_add failed: %s", strerror(errno)); + logger(LOG_ERR, "event_add failed: %s", strerror(errno)); abort(); } diff --git a/src/net_socket.c b/src/net_socket.c index 5eef387..4fe6516 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -442,7 +442,7 @@ begin: } void handle_meta_read(struct bufferevent *event, void *data) { - logger(LOG_EMERG, "handle_meta_read() called"); + logger(LOG_ERR, "handle_meta_read() called"); abort(); } @@ -452,7 +452,7 @@ void handle_meta_write(struct bufferevent *event, void *data) { void handle_meta_connection_error(struct bufferevent *event, short what, void *data) { connection_t *c = data; - logger(LOG_EMERG, "handle_meta_connection_error() called: %d: %s", what, strerror(errno)); + logger(LOG_ERR, "handle_meta_connection_error() called: %d: %s", what, strerror(errno)); terminate_connection(c, c->status.active); } @@ -501,7 +501,7 @@ void setup_outgoing_connection(outgoing_t *outgoing) { event_add(&c->inevent, NULL); c->buffer = bufferevent_new(c->socket, handle_meta_read, handle_meta_write, handle_meta_connection_error, c); if(!c->buffer) { - logger(LOG_EMERG, "bufferevent_new() failed: %s", strerror(errno)); + logger(LOG_ERR, "bufferevent_new() failed: %s", strerror(errno)); abort(); } bufferevent_disable(c->buffer, EV_READ); @@ -544,7 +544,7 @@ void handle_new_meta_connection(int sock, short events, void *data) { event_add(&c->inevent, NULL); c->buffer = bufferevent_new(c->socket, NULL, handle_meta_write, handle_meta_connection_error, c); if(!c->buffer) { - logger(LOG_EMERG, "bufferevent_new() failed: %s", strerror(errno)); + logger(LOG_ERR, "bufferevent_new() failed: %s", strerror(errno)); abort(); } bufferevent_disable(c->buffer, EV_READ); -- 2.25.1