Skip to content

Commit

Permalink
fix(create-app): adjust example app to new API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcj committed Feb 28, 2024
1 parent ab93d32 commit d2b1c26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/create-app/files/app.ts
@@ -1,6 +1,6 @@
import { App } from '@deepkit/app';
import { FrameworkModule } from '@deepkit/framework';
import { Logger, JSONTransport } from '@deepkit/logger';
import { JSONTransport, Logger } from '@deepkit/logger';

import { HelloWorldControllerCli } from './src/controller/hello-world.cli';
import { HelloWorldControllerHttp } from './src/controller/hello-world.http';
Expand All @@ -24,7 +24,7 @@ new App({
.setup((module, config: AppConfig) => {
if (config.environment === 'production') {
//enable logging JSON messages instead of formatted strings
module.setupGlobalProvider<Logger>().setTransport([new JSONTransport]);
module.configureProvider<Logger>(v => v.setTransport([new JSONTransport]));

//disable debugging
module.getImportedModuleByClass(FrameworkModule).configure({debug: false});
Expand Down

0 comments on commit d2b1c26

Please sign in to comment.