From f6292bba774da6c6d1f85f733cfb257cacb16901 Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Sun, 15 Mar 2020 19:32:46 +0530 Subject: [PATCH] chore: added logging and removed unnecessary print in get_cmd_output --- bench/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/utils.py b/bench/utils.py index 464d03a9..bfc4cda0 100755 --- a/bench/utils.py +++ b/bench/utils.py @@ -437,6 +437,7 @@ def setup_sudoers(user): f.write(frappe_sudoers) os.chmod(sudoers_file, 0o440) + log("Sudoers was set up for user {}".format(user), level=1) def setup_logging(bench_path='.'): @@ -510,7 +511,6 @@ def check_git_for_shallow_clone(): def get_cmd_output(cmd, cwd='.'): - print("{0}$ {1}{2}".format(color.silver, cmd, color.nc)) try: output = subprocess.check_output(cmd, cwd=cwd, shell=True, stderr=subprocess.PIPE).strip() except subprocess.CalledProcessError as e: