Uplink exhaustion should be a non-fatal error, since we exit afterwards.
authorMichael Poole <mdpoole@troilus.org>
Fri, 27 Jul 2007 01:34:04 +0000 (21:34 -0400)
committerMichael Poole <mdpoole@troilus.org>
Fri, 27 Jul 2007 01:34:04 +0000 (21:34 -0400)
src/main-common.c: Demote LOG_FATAL errors to LOG_ERROR so that we do not
  generate a core file by tripping the assert() in LOG_FATAL.

src/main-common.c

index 248d610f9abdfdbf79481661909a5e1af51994f2..16ba7c705843e8dbf4202526c05db431ca7b500d 100644 (file)
@@ -275,7 +275,7 @@ uplink_select(char *name)
 
             if(max_cycles && (cManager.cycles >= max_cycles))
             {
-                log_module(MAIN_LOG, LOG_FATAL, "Maximum uplink list cycles exceeded; giving up.");
+                log_module(MAIN_LOG, LOG_ERROR, "Maximum uplink list cycles exceeded; giving up.");
                 exit(1);
             }
 
@@ -312,7 +312,7 @@ uplink_select(char *name)
            over. Use the current uplink if possible. */
         if(!cManager.uplink || cManager.uplink->flags & UPLINK_UNAVAILABLE)
         {
-            log_module(MAIN_LOG, LOG_FATAL, "All available uplinks exhausted; giving up.");
+            log_module(MAIN_LOG, LOG_ERROR, "All available uplinks exhausted; giving up.");
             exit(1);
         }