app: logging & in-memory sqlite while in non-prod
All checks were successful
Basic Checking / Explore-Gitea-Actions (push) Successful in 30s
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:
parent
6c0c6b071c
commit
e32d3c9233
2 changed files with 18 additions and 13 deletions
|
@ -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 })
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue