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",
|
"email":"maloja@krateng.dev",
|
||||||
"github": "krateng"
|
"github": "krateng"
|
||||||
}
|
}
|
||||||
version = 2,2,1
|
version = 2,2,2
|
||||||
versionstr = ".".join(str(n) for n in version)
|
versionstr = ".".join(str(n) for n in version)
|
||||||
|
|
||||||
|
|
||||||
|
@ -166,6 +166,7 @@ def backuphere():
|
|||||||
|
|
||||||
def update():
|
def update():
|
||||||
os.system("pip3 install malojaserver --upgrade --no-cache-dir")
|
os.system("pip3 install malojaserver --upgrade --no-cache-dir")
|
||||||
|
restart()
|
||||||
|
|
||||||
def fixdb():
|
def fixdb():
|
||||||
from .fixexisting import fix
|
from .fixexisting import fix
|
||||||
|
@ -88,7 +88,6 @@ def mainpage():
|
|||||||
@webserver.error(505)
|
@webserver.error(505)
|
||||||
def customerror(error):
|
def customerror(error):
|
||||||
code = int(str(error).split(",")[0][1:])
|
code = int(str(error).split(",")[0][1:])
|
||||||
log("HTTP Error: " + str(code),module="error")
|
|
||||||
|
|
||||||
if os.path.exists(pthjoin(WEBFOLDER,"errors",str(code) + ".pyhp")):
|
if os.path.exists(pthjoin(WEBFOLDER,"errors",str(code) + ".pyhp")):
|
||||||
return pyhpfile(pthjoin(WEBFOLDER,"errors",str(code) + ".pyhp"),{"errorcode":code})
|
return pyhpfile(pthjoin(WEBFOLDER,"errors",str(code) + ".pyhp"),{"errorcode":code})
|
||||||
|
@ -18,7 +18,6 @@ while True:
|
|||||||
try:
|
try:
|
||||||
output = subprocess.check_output(["pidof","Maloja"])
|
output = subprocess.check_output(["pidof","Maloja"])
|
||||||
pid = int(output)
|
pid = int(output)
|
||||||
log("Maloja is running, PID " + str(pid),module="supervisor")
|
|
||||||
except:
|
except:
|
||||||
log("Maloja is not running, restarting...",module="supervisor")
|
log("Maloja is not running, restarting...",module="supervisor")
|
||||||
if get_settings("UPDATE_AFTER_CRASH"):
|
if get_settings("UPDATE_AFTER_CRASH"):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user