1
0
mirror of https://github.com/CMiksche/gitea-auto-update synced 2025-12-13 09:27:20 +01:00

feat: clean-up logging

This commit is contained in:
Christoph Miksche
2019-08-26 22:05:08 +02:00
parent 56f128b2f7
commit 8b64d5f518
3 changed files with 11 additions and 13 deletions

View File

@@ -46,10 +46,10 @@ class Update:
def checkAndUpdate(self):
if version.checkVersion(self.githubVersion, self.currentVersion): # Check if there is a new version
logging.info("new version available, stopping service")
logging.info('Update: new version available, stopping service')
os.system("systemctl stop gitea.service")
self.doUpdate()
logging.info("starting gitea.service")
logging.info('Update: starting gitea.service')
os.system("systemctl start gitea.service")
print("update successfully")
else: