]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
src/ceph.in: Use env(CEPH_DEV) to suppress noise from ceph
authorWillem Jan Withagen <wjw@digiware.nl>
Mon, 24 Apr 2017 10:32:09 +0000 (12:32 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Fri, 26 May 2017 10:07:13 +0000 (12:07 +0200)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/ceph.in

index 3579799b50a7065bd157667f35f18edfaf3a08dd..f96cd7c26ccc0d3c05b58bb1bd98a337694fa52c 100755 (executable)
@@ -71,11 +71,13 @@ def respawn_in_path(lib_path, pybind_path, pythonlib_path):
     if lib_path_var in os.environ:
         if lib_path not in os.environ[lib_path_var]:
             os.environ[lib_path_var] += ':' + lib_path
-            print(DEVMODEMSG, file=sys.stderr)
+           if "CEPH_DEV" not in os.environ:
+                print(DEVMODEMSG, file=sys.stderr)
             os.execvp(py_binary, execv_cmd + sys.argv)
     else:
         os.environ[lib_path_var] = lib_path
-        print(DEVMODEMSG, file=sys.stderr)
+       if "CEPH_DEV" not in os.environ:
+            print(DEVMODEMSG, file=sys.stderr)
         os.execvp(py_binary, execv_cmd + sys.argv)
     sys.path.insert(0, os.path.join(MYDIR, pybind_path))
     sys.path.insert(0, os.path.join(MYDIR, pythonlib_path))