common: disable log_per_instance for non-daemons

Turn off the logging and symlink rotation, not just symlink rotation.

This is a somewhat arbitrary distinction (log per instance only for
daemons), but its only used by vstart and only really useful for
development/debugging, so who cares.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
This commit is contained in:
Sage Weil 2011-03-16 14:39:24 -07:00
parent cae43fc7d0
commit 6fa470ba51

View File

@ -138,8 +138,8 @@ void common_init(std::vector < const char* >& args,
conf->parse_argv(args); // argv override
if (code_env != CODE_ENVIRONMENT_DAEMON) {
// The symlink stuff only really makes sense for daemons
conf->log_sym_history = false;
// The symlink stuff only really makes sense for daemons
conf->log_per_instance = false;
}
if (conf->log_to_syslog || conf->clog_to_syslog) {