fix: debug stateements

This commit is contained in:
Ben Allfree 2024-09-23 05:56:21 -07:00
parent 98bf5e17b1
commit 430495387f

View File

@ -32,7 +32,7 @@ export const realtimeLog = mkSingleton(async (config: RealtimeLogConfig) => {
const json = await text(req) const json = await text(req)
dbg(`JSON payload is`, json) dbg(`JSON payload is`, json)
const payload = JSON.parse(json) const payload = JSON.parse(json)
dbg(`Parsed payload is`, parsed) dbg(`Parsed payload is`, payload)
const { instanceId, auth, n: nInitialRecords } = payload const { instanceId, auth, n: nInitialRecords } = payload
if (!instanceId) { if (!instanceId) {
@ -67,7 +67,7 @@ export const realtimeLog = mkSingleton(async (config: RealtimeLogConfig) => {
dbg(`Instance is `, instance) dbg(`Instance is `, instance)
/** Get a database connection */ /** Get a database connection */
const instanceLogger = InstanceLogger(instanceId, `exec`) const instanceLogger = InstanceLogger(instance.id, `exec`)
/** Start the stream */ /** Start the stream */
res.writeHead(200, { res.writeHead(200, {