Add none mode to logging.date_display_mode

This commit is contained in:
Starbeamrainbowlabs 2019-07-16 18:03:35 +01:00
parent 2a9de80848
commit 952312fbd3
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,10 @@ class Log {
}
log_raw(func, ...items) {
if(this.settings.logging.date_display_mode == "none") {
func(...items);
return;
}
let prefix = (new Date()).toISOString();
if(this.settings.logging.date_display_mode == "relative") {
prefix = ((new Date() - this.start_time) / 1000).toFixed(4);