Mercurial > ~mikael > mcabber > hg
diff mcabber/src/main.c @ 138:250f872c722f
[/trunk] Changeset 150 by mikael
* Debug defaults to disabled, but can be enabled with the "debug" option.
author | mikael |
---|---|
date | Thu, 28 Apr 2005 18:47:43 +0000 |
parents | ef898db62b79 |
children | 9f74832eb4f8 |
line wrap: on
line diff
--- a/mcabber/src/main.c Thu Apr 28 17:58:40 2005 +0000 +++ b/mcabber/src/main.c Thu Apr 28 18:47:43 2005 +0000 @@ -84,7 +84,7 @@ credits(); /* SET THIS >0 TO ENABLE LOG */ - ut_InitDebug(1); + ut_InitDebug(0, NULL); ut_WriteLog("Setting signals handlers...\n"); signal(SIGTERM, sig_handler); @@ -116,6 +116,10 @@ ut_WriteLog("Parsing config file...\n"); cfg_file(configFile); + optstring = cfg_read("debug"); + if (optstring) + ut_InitDebug(1, optstring); + servername = cfg_read("server"); username = cfg_read("username"); password = cfg_read("password");