Demote all LOG_EMERG to LOG_ERR, spamming all xterms is bad.
authorSven-Haegar Koch <haegar@sdinet.de>
Fri, 26 Mar 2010 16:25:18 +0000 (17:25 +0100)
committerSven-Haegar Koch <haegar@sdinet.de>
Wed, 31 Mar 2010 03:06:33 +0000 (05:06 +0200)
src/net_setup.c
src/net_socket.c

index 597c3cb..c2ae649 100644 (file)
@@ -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();
                }
 
index 5eef387..4fe6516 100644 (file)
@@ -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);