app: logging & in-memory sqlite while in non-prod
All checks were successful
Basic Checking / Explore-Gitea-Actions (push) Successful in 30s

The tests are currently working on my laptop, but failing on the CI
actions. 🤔
There have always been errors on it inserting animals to the database,
and now seem like it fails to get routes before the async promise is
fufilled? I'm not sure.

Switch everything to the bole logger, and not the `console.`
stuff.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2023-09-28 14:13:59 -04:00
parent 6c0c6b071c
commit e32d3c9233
Signed by: vbatts
GPG key ID: E30EFAA812C6E5ED
2 changed files with 18 additions and 13 deletions

View file

@ -9,7 +9,9 @@ config.express = {
if (PRODUCTION) {
config.express.ip = '0.0.0.0';
bole.output({ level: 'debug', stream: process.stdout })
} else {
config.db_path = "db/results.db";
bole.output({ level: 'info', stream: process.stdout })
} else {
config.db_path = ":memory:";
bole.output({ level: 'debug', stream: process.stdout })
}