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

View file

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