]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/ceph_context.cc: Use CEPH_DEV to reduce logfile noise 10384/head
authorWillem Jan Withagen <wjw@digiware.nl>
Mon, 21 Nov 2016 10:59:07 +0000 (11:59 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Sun, 2 Apr 2017 19:44:59 +0000 (21:44 +0200)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/common/ceph_context.cc

index 61469968268d5e3523f8547256495e4eb664d0b5..9334a94b1fad210427fe0d40577d0c2b8eee6eae 100644 (file)
@@ -305,6 +305,17 @@ public:
        conf->enable_experimental_unrecoverable_data_corrupting_features,
        cct->_experimental_features);
       ceph_spin_unlock(&cct->_feature_lock);
+      if (getenv("CEPH_DEV") == NULL) {
+        if (!cct->_experimental_features.empty()) {
+          if (cct->_experimental_features.count("*")) {
+            lderr(cct) << "WARNING: all dangerous and experimental features are enabled." << dendl;
+          } else {
+            lderr(cct) << "WARNING: the following dangerous and experimental features are enabled: "
+              << cct->_experimental_features << dendl;
+          }
+        }
+      }
+
     }
     if (changed.count("crush_location")) {
       cct->crush_location.update_from_conf();