mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Minor change in debug logging
This commit is contained in:
parent
fa87d6a071
commit
9359ef02cc
1 changed files with 3 additions and 1 deletions
|
@ -93,7 +93,6 @@ function ProcessIncomingRequest (recievedData, qdb, infos) {
|
||||||
if (allQuestions.length > 0) {
|
if (allQuestions.length > 0) {
|
||||||
color = logger.GetColor('blue')
|
color = logger.GetColor('blue')
|
||||||
msg += `New questions: ${allQuestions.length} ( All: ${allQLength} )`
|
msg += `New questions: ${allQuestions.length} ( All: ${allQLength} )`
|
||||||
|
|
||||||
allQuestions.forEach((q) => {
|
allQuestions.forEach((q) => {
|
||||||
qdb.AddQuestion(d.subj, q)
|
qdb.AddQuestion(d.subj, q)
|
||||||
})
|
})
|
||||||
|
@ -126,6 +125,9 @@ function ProcessIncomingRequest (recievedData, qdb, infos) {
|
||||||
if (d.version !== undefined) { msg += '. Version: ' + d.version }
|
if (d.version !== undefined) { msg += '. Version: ' + d.version }
|
||||||
|
|
||||||
logger.Log('\t' + msg, color)
|
logger.Log('\t' + msg, color)
|
||||||
|
logger.DebugLog('New Questions:', 'actions', 2)
|
||||||
|
logger.DebugLog(allQuestions, 'actions', 2)
|
||||||
|
|
||||||
logger.DebugLog('ProcessIncomingRequest done', 'actions', 1)
|
logger.DebugLog('ProcessIncomingRequest done', 'actions', 1)
|
||||||
return allQuestions.length
|
return allQuestions.length
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue