]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: log mkfs as INFO with fs
authorSage Weil <sage.weil@dreamhost.com>
Fri, 20 May 2011 03:45:48 +0000 (20:45 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Fri, 20 May 2011 03:46:00 +0000 (20:46 -0700)
The [ERR] log level is misleading.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/mon/LogMonitor.cc

index 6203d64ecbd2a3c7cf425cde3acd755eaeb5db4b..8732f57c29c76df1cb5550118c92464a54c1abc5 100644 (file)
@@ -82,8 +82,10 @@ void LogMonitor::create_initial(bufferlist& bl)
   LogEntry e;
   memset(&e.who, 0, sizeof(e.who));
   e.stamp = g_clock.now();
-  e.type = CLOG_ERROR;
-  e.msg = "mkfs";
+  e.type = CLOG_INFO;
+  std::stringstream ss;
+  ss << "mkfs " << mon->monmap->get_fsid();
+  e.msg = ss.str();
   e.seq = 0;
   pending_log.insert(pair<utime_t,LogEntry>(e.stamp, e));
 }