Skip to content

Commit

Permalink
Change log output to console log output only
Browse files Browse the repository at this point in the history
  • Loading branch information
TrustHenry committed Aug 28, 2023
1 parent 8828fb6 commit 0c2e29a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/relay/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ async function main() {

case "development":
// Only use the console log
logger.add(Logger.defaultConsoleTransport());
if (config.logging.console) logger.add(Logger.defaultConsoleTransport());
break;

case "production":
default:
// Read the config file and potentially use both
logger.add(Logger.defaultFileTransport(config.logging.folder));
// logger.add(Logger.defaultFileTransport(config.logging.folder));
if (config.logging.console) logger.add(Logger.defaultConsoleTransport());
}
logger.transports.forEach((tp) => {
Expand Down

0 comments on commit 0c2e29a

Please sign in to comment.