]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
debug: no name symlink when explicit --log-file
authorSage Weil <sage@newdream.net>
Tue, 27 Jul 2010 18:20:02 +0000 (11:20 -0700)
committerSage Weil <sage@newdream.net>
Tue, 27 Jul 2010 19:49:20 +0000 (12:49 -0700)
src/common/debug.cc

index a252d7cbaa6c15d37d596bfc94860982c4ab1d39..4c06a469349d06dd27ab88a32ea2fe0713d4e128 100644 (file)
@@ -108,7 +108,7 @@ static void rotate_file(const char *fn, int max)
 static int create_name_symlink()
 {
   int r = 0;
-  if (log_to_file() && g_conf.log_per_instance) {
+  if (log_to_file() && g_conf.log_per_instance && !(g_conf.log_file && g_conf.log_file[0])) {
     snprintf(_dout_name_symlink_path, sizeof(_dout_name_symlink_path),
             "%s/%s.%s", _dout_symlink_dir, g_conf.type, g_conf.id);