onemoredata / bagger

Massive log storage in PostgreSQL
BSD 2-Clause "Simplified" License
9 stars 0 forks source link

Fixes #30 #45

Closed einhverfr closed 8 months ago

einhverfr commented 8 months ago

Here we use Capture::Tiny to capture stdout, stderr, and the result of the system calls and WARN anything from STDERR. This allows us to intercept and log warnings from the application. We may want to allow warning of STDOUT as well in the future via a package var.

Fixes #30

einhverfr commented 8 months ago

I tested the failure conditions manually by running the db tests with the db already created and got the expected output to STDERR.