mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Removed some log output
This commit is contained in:
parent
fbce600c4e
commit
c518627670
@ -7,7 +7,7 @@ author = {
|
||||
"email":"maloja@krateng.dev",
|
||||
"github": "krateng"
|
||||
}
|
||||
version = 2,2,1
|
||||
version = 2,2,2
|
||||
versionstr = ".".join(str(n) for n in version)
|
||||
|
||||
|
||||
|
@ -166,6 +166,7 @@ def backuphere():
|
||||
|
||||
def update():
|
||||
os.system("pip3 install malojaserver --upgrade --no-cache-dir")
|
||||
restart()
|
||||
|
||||
def fixdb():
|
||||
from .fixexisting import fix
|
||||
|
@ -88,7 +88,6 @@ def mainpage():
|
||||
@webserver.error(505)
|
||||
def customerror(error):
|
||||
code = int(str(error).split(",")[0][1:])
|
||||
log("HTTP Error: " + str(code),module="error")
|
||||
|
||||
if os.path.exists(pthjoin(WEBFOLDER,"errors",str(code) + ".pyhp")):
|
||||
return pyhpfile(pthjoin(WEBFOLDER,"errors",str(code) + ".pyhp"),{"errorcode":code})
|
||||
|
@ -18,7 +18,6 @@ while True:
|
||||
try:
|
||||
output = subprocess.check_output(["pidof","Maloja"])
|
||||
pid = int(output)
|
||||
log("Maloja is running, PID " + str(pid),module="supervisor")
|
||||
except:
|
||||
log("Maloja is not running, restarting...",module="supervisor")
|
||||
if get_settings("UPDATE_AFTER_CRASH"):
|
||||
|
Loading…
Reference in New Issue
Block a user