We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a574d2 commit 57e10abCopy full SHA for 57e10ab
cloudwatch-logs.mjs
@@ -50,7 +50,10 @@ export function main () {
50
51
rl.on('close', () => {
52
console.log('Finished parsing log file.')
53
- processLines().then(() => console.log('Finished processing lines.'))
+ processLines().then(() => {
54
+ console.log('Finished processing lines.')
55
+ rabbit.close().catch(() => console.log('rabbit closed'))
56
+ })
57
})
58
59
rl.on('error', (e) => {
@@ -61,5 +64,4 @@ export function main () {
61
64
// Run main function if this file is executed directly
62
65
if (import.meta.url === `file://${process.argv[1]}`) {
63
66
main()
- setTimeout(rabbit.close, 20000)
67
}
0 commit comments