mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Added duplicate remover ( #5 ), saving subjects without year, file append now sync, minor logging improvements
This commit is contained in:
@@ -29,7 +29,8 @@ module.exports = {
|
||||
LogStat: LogStat,
|
||||
Load: Load,
|
||||
logHashed: logHashed,
|
||||
hr: hr
|
||||
hr: hr,
|
||||
C: C
|
||||
}
|
||||
|
||||
const DELIM = C('green') + '|' + C()
|
||||
@@ -82,6 +83,7 @@ function DebugLog (msg, name, lvl) {
|
||||
s = header + msg
|
||||
} else {
|
||||
Log(header + 'OBJECT:', 'yellow')
|
||||
s = msg
|
||||
}
|
||||
Log(s, 'yellow')
|
||||
}
|
||||
@@ -91,7 +93,7 @@ function Log (s, c) {
|
||||
let log = s
|
||||
if (typeof s !== 'object') {
|
||||
let dl = DELIM + C(c)
|
||||
log = C(c) + GetDateString() + dl + s
|
||||
log = C(c) + GetDateString() + dl + s + C()
|
||||
}
|
||||
|
||||
console.log(log)
|
||||
|
Reference in New Issue
Block a user