generated from nhcarrigan/template
chore: only log server live when in prod
All checks were successful
Node.js CI / Lint and Test (pull_request) Successful in 1m44s
All checks were successful
Node.js CI / Lint and Test (pull_request) Successful in 1m44s
This commit is contained in:
@ -38,5 +38,7 @@ server.listen({ port: 20_000 }, (error) => {
|
|||||||
void logger.error("instantiate server", error);
|
void logger.error("instantiate server", error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
void logger.log("debug", "Server listening on port 20000.");
|
if (process.env.NODE_ENV === "dev") {
|
||||||
|
void logger.log("debug", "Server listening on port 20000.");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user