1
0
Fork 0
mirror of https://github.com/kou029w/quot.git synced 2025-01-18 16:08:03 +00:00

print stderr

This commit is contained in:
Nebel 2022-09-07 05:51:57 +09:00
parent 787f97dcd7
commit dc559a70cb
2 changed files with 5 additions and 1 deletions

View file

@ -9,7 +9,7 @@ declare module "fastify" {
} }
export function App(config: Config = defaultConfig()): FastifyInstance { export function App(config: Config = defaultConfig()): FastifyInstance {
const app = fastify({ logger: true }); const app = fastify({ logger: { stream: process.stderr, level: "warn" } });
app.decorate("config", config).register(routes); app.decorate("config", config).register(routes);
return app; return app;
} }

View file

@ -4,6 +4,10 @@ user = root
[program:app] [program:app]
command = npm --prefix app start command = npm --prefix app start
stderr_logfile = /dev/stderr
stderr_logfile_maxbytes = 0
[program:api] [program:api]
command = postgrest command = postgrest
stderr_logfile = /dev/stderr
stderr_logfile_maxbytes = 0