From 76f6cc6fd2eecb29f265226e43408a0d9ad41174 Mon Sep 17 00:00:00 2001 From: Martin Johansson Date: Mon, 10 Oct 2011 09:43:46 -0400 Subject: [PATCH] Better logging during channel configuration. --- src/channel.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/channel.c b/src/channel.c index 22d909f..26e21b9 100644 --- a/src/channel.c +++ b/src/channel.c @@ -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); -- 2.30.2