From: Willem Jan Withagen Date: Mon, 24 Apr 2017 10:32:09 +0000 (+0200) Subject: src/ceph.in: Use env(CEPH_DEV) to suppress noise from ceph X-Git-Tag: v12.1.0~57^2~35^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f7e60bac5d2c4edc6e54d729fd49b0bf25639850;p=ceph.git src/ceph.in: Use env(CEPH_DEV) to suppress noise from ceph Signed-off-by: Willem Jan Withagen --- diff --git a/src/ceph.in b/src/ceph.in index 3579799b50a..f96cd7c26cc 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -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))