mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Ask test script fix, debug logging typo fix
This commit is contained in:
parent
c6764ce49c
commit
6e83e5051c
3 changed files with 4 additions and 4 deletions
|
@ -28,13 +28,13 @@ echo "Question: $q"
|
|||
echo "Data: $data"
|
||||
echo "Subject: $subj"
|
||||
|
||||
q=$(node -e "console.log(encodeURIComponent('\"$q\"'))")
|
||||
q=$(node -e "console.log(encodeURIComponent('$q'))")
|
||||
if [ "$?" -ne 0 ]; then
|
||||
echo "node error!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
subj=$(node -e "console.log(encodeURIComponent('\"$subj\"'))")
|
||||
subj=$(node -e "console.log(encodeURIComponent('$subj'))")
|
||||
if [ "$?" -ne 0 ]; then
|
||||
echo "node error!"
|
||||
exit 1
|
||||
|
|
|
@ -201,7 +201,7 @@ app.get('/ask', function (req, res) {
|
|||
result: r,
|
||||
success: true
|
||||
})
|
||||
logger.DebugLog(`Question result length: ${r.lengh}`, 'ask', 1)
|
||||
logger.DebugLog(`Question result length: ${r.length}`, 'ask', 1)
|
||||
logger.DebugLog(r, 'ask', 2)
|
||||
} else {
|
||||
logger.DebugLog(`Invalid question`, 'ask', 1)
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 95a3067d623043ee34d4092f053d7ec7bdb93fa3
|
||||
Subproject commit 24f3decbce1990d8d4010e89fe2407367ed321b2
|
Loading…
Add table
Add a link
Reference in a new issue