@akc42/server-utils 4.0.11 → 4.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/debug.js +1 -1
- package/package.json +1 -1
package/debug.js
CHANGED
|
@@ -165,7 +165,7 @@ export async function getDebugLog(callback, loid, no, ip) {
|
|
|
165
165
|
const {logtime:lt } = getLogtime.get(lid)??{logtime:0}
|
|
166
166
|
if (lt > 0) {
|
|
167
167
|
const fetchRecords = db.prepare(`SELECT logid, logtime,crash,shortdate,ipaddress, topic,message,colourspec,gap FROM Log
|
|
168
|
-
WHERE (unixepoch(logtime,'subsec'))
|
|
168
|
+
WHERE (unixepoch(logtime,'subsec')) <= ? AND logid <> ? AND ipaddress = ? ORDER BY unixepoch(logtime,'subsec') DESC LIMIT ?`)
|
|
169
169
|
if (!db.inTransaction) db.exec('BEGIN TRANSACTION');
|
|
170
170
|
for (const {logid,logtime,crash,shortdate,ipaddress,topic,message,colourspec,gap} of fetchRecords.iterate(lt, lid, ipadd??null, limit)) {
|
|
171
171
|
const output = messageFormatter(logid,logtime,crash,shortdate,ipaddress,topic,message,colourspec,gap)
|