Better logging during channel configuration.
authorMartin Johansson <martin@fatbob.nu>
Mon, 10 Oct 2011 13:43:46 +0000 (09:43 -0400)
committerMartin Johansson <martin@fatbob.nu>
Mon, 10 Oct 2011 13:43:46 +0000 (09:43 -0400)
src/channel.c

index 22d909f0e14efccdcfec7d13ac7f7df087be58c2..26e21b913511f05f409f79e6e1eeae7e26615fd6 100644 (file)
@@ -161,10 +161,12 @@ void Chan_init()
                        channel_t *ch, *ch_itr = NULL;
                        ch = Chan_createChannel(chdesc.name, chdesc.description);
                        ch->noenter = chdesc.noenter;
-                       if (chdesc.password)
+                       if (chdesc.password) {
+                               Log_info("Setting password on channel '%s'", ch->name); 
                                ch->password = strdup(chdesc.password);
+                       }
                        if (strcmp(defaultChannelName, chdesc.name) == 0) {
-                               Log_info("Setting default channel %s", ch->name); 
+                               Log_info("Setting default channel '%s'", ch->name); 
                                defaultChan = ch;
                        }
                        
@@ -173,7 +175,7 @@ void Chan_init()
                        } while (ch_itr != NULL && strcmp(ch_itr->name, chdesc.parent) != 0);
                        
                        if (ch_itr == NULL)
-                               Log_fatal("Error in channel configuration: parent not found");
+                               Log_fatal("Error in channel configuration: parent '%s' not found", chdesc.parent);
                        else {
                                Chan_addChannel(ch_itr, ch);
                                Log_info("Adding channel '%s' parent '%s'", ch->name, chdesc.parent);