cpan-testers / cpantesters-api

An API in to data held by CPAN Testers: Test reports and CPAN uploads
Other
4 stars 4 forks source link

Write logs to STDERR #11

Closed preaction closed 7 years ago

preaction commented 7 years ago

Right now all the Mojolicious apps are writing the logs to the default mojo logger, which, if there is a "log" directory present, is "log/.log", otherwise it's STDOUT. Since the runit log service file creates a "log" directory, our logs are not being written to STDOUT. This makes the runit log service irrelevant, but it also means that our logs are not being rotated.

We should make sure that both CPAN::Testers::API and cpantesters-legacy-metabase are writing their logs to STDERR so they can be rotated properly and only written to one log file.

In the future, we will want to forward these logs to syslog as well.