mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 02:14:49 +00:00
Improve logging
This commit is contained in:
1 parent
c08a9b6e55
commit
68fcc69060
1 file changed
+2
-1
@@ -80,7 +80,6 @@ class RuntimeDependencyCollection:
|
||||
import pwd
|
||||
|
||||
kwargs["user"] = pwd.getpwuid(os.getuid()).pw_name
|
||||
log.info("Running command '%s' in '%s'", command, cwd)
|
||||
|
||||
is_windows = platform.system() == "Windows"
|
||||
if not isinstance(command, str) and not is_windows:
|
||||
@@ -88,6 +87,8 @@ class RuntimeDependencyCollection:
|
||||
# on Linux/macOS
|
||||
command = " ".join(command)
|
||||
|
||||
log.info("Running command %s in '%s'", f"'{command}'" if isinstance(command, str) else command, cwd)
|
||||
|
||||
completed_process = subprocess.run(
|
||||
command,
|
||||
shell=True,
|
||||
|
||||
Reference in new issue
Block a user