[BUG] scanner logging #19
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
when a scan command comes over weird it could cause an error
POST /lst/api/mobile/logs 500 53.008 ms - 1146
Error: Failed query: insert into "scan_log" ("id", "user", "scanner_id", "message", "prompt", "command_description", "running_number", "status", "lines", "add_date") values (default, $1, $2, default, default, default, $3, default, default, default) returning "id", "user", "scanner_id",
"message", "prompt", "command_description", "running_number", "status", "lines", "add_date"
params: Big mike,2,711864
at PostgresJsPreparedQuery.queryWithCache (file:///D:/LST_V3/node_modules/drizzle-orm/pg-core/session.js:41:15)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async file:///D:/LST_V3/node_modules/drizzle-orm/postgres-js/session.js:37:20
at async file:///D:/LST_V3/dist/mobile/scanLogs.route.js:8:20
Severity
Environment
Example:
also added in a scanner version to better see whats going on when someone scans and has issues