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

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