Minor change in debug logging

This commit is contained in:
MrFry 2020-03-23 16:49:42 +01:00
parent fa87d6a071
commit 9359ef02cc

View file

@ -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) {