fdesjardins / bunyan-postgres-stream Goto Github PK
View Code? Open in Web Editor NEWA bunyan stream for PostgreSQL
License: MIT License
A bunyan stream for PostgreSQL
License: MIT License
Any support or plans to support batching of inserts to Postgres? I am using AWS RDS and concerned with hitting limits if sending lots of small logs.
If I call stream.end()
once my app's work is done, I always get this error:
(node:10530) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): Error: pool is draining and cannot accept work
If I add an artificial sleep before this stream.end()
then it goes away, but I would prefer a deterministic way to ensure this.
The second problem is that my node.js script no longer exits once I've added this stream. I tried: pgStream.end(process.exit);
but that's not helping.
I'm using a pg
connection so I guess it's this line not doing its job somehow: return this.pool.end(cb)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.