Skip to content

Commit 7e819c2

Browse files
committed
get-webhook-event-payload: log messages to stderr, not stdout
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 4d6a6db commit 7e819c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

get-webhook-event-payload.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@
101101
let cursor = Math.floor(answer.oldest.id - rate * (answer.oldest.epoch - until))
102102
for (;;) {
103103
answer = await getAtCursor(cursor)
104-
console.log(`got answer ${JSON.stringify(answer)} for cursor ${cursor}`)
104+
console.error(`got answer ${JSON.stringify(answer)} for cursor ${cursor}`)
105105
if (answer.newest) break
106106
rate /= 2
107107
const newCursor = Math.floor(previousAnswer.oldest.id - rate * (previousAnswer.oldest.epoch - until))
108108
if (newCursor === cursor) break
109109
cursor = newCursor
110110
}
111-
console.log(`got final answer ${JSON.stringify(answer)} for cursor ${cursor}`)
111+
console.error(`got final answer ${JSON.stringify(answer)} for cursor ${cursor}`)
112112
}
113113

114114
while (answer.newest?.epoch && answer.newest.epoch < until) {

0 commit comments

Comments
 (0)