Reduce log level from WARNING to NOTICE on some events 57/68857/2
authorTrond Norbye <trond.norbye@gmail.com>
Fri, 14 Oct 2016 09:26:19 +0000 (11:26 +0200)
committerDave Rigby <daver@couchbase.com>
Tue, 18 Oct 2016 17:04:50 +0000 (17:04 +0000)
Change-Id: Ice0d3391778a0c4a82739b1a206cb4fe17bc23dc
Reviewed-on: http://review.couchbase.org/68857
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
src/ep.cc
src/executorpool.cc
src/executorthread.cc

index f2bb606..b84cc55 100644 (file)
--- a/src/ep.cc
+++ b/src/ep.cc
@@ -522,7 +522,7 @@ bool EventuallyPersistentStore::startFlusher() {
 void EventuallyPersistentStore::stopFlusher() {
     for (uint16_t i = 0; i < vbMap.shards.size(); i++) {
         Flusher *flusher = vbMap.shards[i]->getFlusher();
-        LOG(EXTENSION_LOG_WARNING, "Attempting to stop the flusher for "
+        LOG(EXTENSION_LOG_NOTICE, "Attempting to stop the flusher for "
             "shard:%" PRIu16, i);
         bool rv = flusher->stop(stats.forceShutdown);
         if (rv && !stats.forceShutdown) {
@@ -588,7 +588,7 @@ void EventuallyPersistentStore::stopBgFetcher() {
                 "Shutting down engine while there are still pending data "
                 "read for shard %d from database storage", i);
         }
-        LOG(EXTENSION_LOG_WARNING, "Stopping bg fetcher for shard:%" PRIu16, i);
+        LOG(EXTENSION_LOG_NOTICE, "Stopping bg fetcher for shard:%" PRIu16, i);
         bgfetcher->stop();
     }
 }
@@ -3676,7 +3676,7 @@ void EventuallyPersistentStore::stopWarmup(void)
 {
     // forcefully stop current warmup task
     if (isWarmingUp()) {
-        LOG(EXTENSION_LOG_WARNING, "Stopping warmup while engine is loading "
+        LOG(EXTENSION_LOG_NOTICE, "Stopping warmup while engine is loading "
             "data from underlying storage, shutdown = %s\n",
             stats.isShutdown ? "yes" : "no");
         warmupTask->stop();
index 960bf80..b889079 100644 (file)
@@ -554,7 +554,7 @@ bool ExecutorPool::_stopTaskGroup(task_gid_t taskGID,
             TaskQueue *q = itr->second.second;
             if (task->getTaskable().getGID() == taskGID &&
                 (taskType == NO_TASK_TYPE || q->queueType == taskType)) {
-                LOG(EXTENSION_LOG_WARNING, "Stopping Task id %" PRIu64 " %s %s ",
+                LOG(EXTENSION_LOG_NOTICE, "Stopping Task id %" PRIu64 " %s %s ",
                     uint64_t(task->getId()),
                     task->getTaskable().getName().c_str(),
                     task->getDescription().c_str());
index 7c649a3..709340d 100644 (file)
@@ -59,11 +59,11 @@ void ExecutorThread::stop(bool wait) {
     state = EXECUTOR_SHUTDOWN;
 
     if (!wait) {
-        LOG(EXTENSION_LOG_WARNING, "%s: Stopping", name.c_str());
+        LOG(EXTENSION_LOG_NOTICE, "%s: Stopping", name.c_str());
         return;
     }
     cb_join_thread(thread);
-    LOG(EXTENSION_LOG_WARNING, "%s: Stopped", name.c_str());
+    LOG(EXTENSION_LOG_NOTICE, "%s: Stopped", name.c_str());
 }
 
 void ExecutorThread::run() {