mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-15 17:56:12 +01:00
add logging
This commit is contained in:
@@ -106,7 +106,7 @@ class Upgrade:
|
|||||||
FNULL = open(os.devnull, 'w')
|
FNULL = open(os.devnull, 'w')
|
||||||
count = 0
|
count = 0
|
||||||
while True:
|
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:
|
if res != 0:
|
||||||
count = count + 1
|
count = count + 1
|
||||||
Upgrade.stdOut(component + ' failed, trying again, try number: ' + str(count), 0)
|
Upgrade.stdOut(component + ' failed, trying again, try number: ' + str(count), 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user