From: Sven-Haegar Koch Date: Fri, 26 Mar 2010 16:25:18 +0000 (+0100) Subject: Demote all LOG_EMERG to LOG_ERR, spamming all xterms is bad. X-Git-Tag: release-1.1pre1~78 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=0310deb225cad21c458fb32fd589027e3f844735;p=tinc Demote all LOG_EMERG to LOG_ERR, spamming all xterms is bad. --- diff --git a/src/net_setup.c b/src/net_setup.c index 597c3cb7..c2ae6491 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 5eef3875..4fe65161 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);