diff --git a/README.md b/README.md index d244ec5..16376ca 100644 --- a/README.md +++ b/README.md @@ -69,3 +69,5 @@ If you didn't install Maloja from the package (and therefore don't have it in `/ maloja restart maloja start maloja update + + The `update` command will always fetch the latest version, while packages are only offered for release versions. diff --git a/utilities.py b/utilities.py index cf34ec0..96fa4cc 100644 --- a/utilities.py +++ b/utilities.py @@ -4,6 +4,7 @@ import hashlib from threading import Thread import pickle import urllib +import datetime ### TSV files @@ -160,11 +161,12 @@ def cleandict(d): def log(msg): import inspect + now = datetime.datetime.utcnow().strftime("%Y/%m/%d %H:%M:%S") module = inspect.getmodule(inspect.stack()[1][0]).__name__ if module == "__main__": module = "mainserver" print("[" + module + "] " + msg) with open("logs/" + module + ".log","a") as logfile: - logfile.write(msg + "\n") + logfile.write(now + " " + msg + "\n")