default log level fix
This commit is contained in:
parent
2891e9bb27
commit
17a2cbfc90
|
@ -1,3 +1,5 @@
|
|||
2010-11-26 P. A. Bagyenda <bagyenda@dsmagic.com>
|
||||
* Minor fix for default log level (thanks to Piotr Isajew (pki at ex.com.pl)
|
||||
2010-11-23 P. A. Bagyenda <bagyenda@dsmagic.com>
|
||||
* Minor fix in handling of extra mm7 headers
|
||||
2010-11-16 P. A. Bagyenda <bagyenda@dsmagic.com>
|
||||
|
|
|
@ -49,11 +49,14 @@ int mms_load_core_settings(mCfg *cfg, mCfgGrp *cgrp)
|
|||
Octstr *log, *alog;
|
||||
Octstr *http_proxy_host;
|
||||
Octstr *our_interface;
|
||||
long loglevel;
|
||||
long loglevel = 0;
|
||||
|
||||
if (cgrp == NULL)
|
||||
panic(0,"Missing required group `core' in config file!");
|
||||
|
||||
if (mms_cfg_get_int(cfg, cgrp, octstr_imm("log-level"), &loglevel) == -1)
|
||||
loglevel = 0;
|
||||
|
||||
/* Set the log file. */
|
||||
log = mms_cfg_get(cfg, cgrp, octstr_imm("log-file"));
|
||||
if (log != NULL) {
|
||||
|
@ -61,8 +64,6 @@ int mms_load_core_settings(mCfg *cfg, mCfgGrp *cgrp)
|
|||
octstr_destroy(log);
|
||||
}
|
||||
|
||||
if (mms_cfg_get_int(cfg, cgrp, octstr_imm("log-level"), &loglevel) == -1)
|
||||
loglevel = 0;
|
||||
log_set_output_level(loglevel);
|
||||
|
||||
/* Get access log and open it. */
|
||||
|
|
Loading…
Reference in New Issue