mirror of https://github.com/yandex/odyssey.git
odissey: always print used config file
This commit is contained in:
parent
a42418c58e
commit
ef050d701f
16
odissey.conf
16
odissey.conf
|
@ -7,14 +7,14 @@
|
|||
# syslog_ident "odissey"
|
||||
# pid_file "./odissey.pid"
|
||||
# log_file "./odissey.log"
|
||||
log_config yes
|
||||
log_debug yes
|
||||
readahead 8192
|
||||
pipelining 16384
|
||||
client_max 100
|
||||
workers 3
|
||||
stats_period 3
|
||||
pooling "transaction"
|
||||
log_config yes
|
||||
log_debug no
|
||||
readahead 8192
|
||||
pipelining 16384
|
||||
client_max 100
|
||||
workers 3
|
||||
stats_period 3
|
||||
pooling "transaction"
|
||||
|
||||
listen {
|
||||
host "*"
|
||||
|
|
|
@ -139,7 +139,10 @@ int od_instance_main(od_instance_t *instance, int argc, char **argv)
|
|||
rc = od_scheme_validate(&instance->scheme, &instance->log);
|
||||
if (rc == -1)
|
||||
return 1;
|
||||
/* print configuration scheme */
|
||||
/* print configuration */
|
||||
od_log(&instance->log, "using configuration file '%s'",
|
||||
instance->scheme.config_file);
|
||||
od_log(&instance->log, "");
|
||||
if (instance->scheme.log_config)
|
||||
od_scheme_print(&instance->scheme, &instance->log);
|
||||
/* create pid file */
|
||||
|
|
|
@ -350,9 +350,6 @@ od_scheme_yes_no(int value) {
|
|||
|
||||
void od_scheme_print(od_scheme_t *scheme, od_log_t *log)
|
||||
{
|
||||
od_log(log, "using configuration file '%s'",
|
||||
scheme->config_file);
|
||||
od_log(log, "");
|
||||
if (scheme->log_debug)
|
||||
od_log(log, "log_debug %s",
|
||||
od_scheme_yes_no(scheme->log_debug));
|
||||
|
|
Loading…
Reference in New Issue