mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-15 09:46:11 +01:00
add logging
This commit is contained in:
@@ -106,7 +106,7 @@ class Upgrade:
|
||||
FNULL = open(os.devnull, 'w')
|
||||
count = 0
|
||||
while True:
|
||||
res = subprocess.call(shlex.split(command), stdout=FNULL, stderr=subprocess.STDOUT)
|
||||
res = subprocess.call(shlex.split(command), stderr=subprocess.STDOUT)
|
||||
if res != 0:
|
||||
count = count + 1
|
||||
Upgrade.stdOut(component + ' failed, trying again, try number: ' + str(count), 0)
|
||||
|
||||
Reference in New Issue
Block a user