mirror of https://github.com/fantasticit/think.git
server: improve log
This commit is contained in:
parent
ec9d33d3b1
commit
2eb88074db
|
@ -14,7 +14,9 @@ import helmet from 'helmet';
|
|||
import { AppModule } from './app.module';
|
||||
|
||||
async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
const app = await NestFactory.create(AppModule, {
|
||||
logger: ['warn', 'error'],
|
||||
});
|
||||
const config = app.get(ConfigService);
|
||||
const port = config.get('server.port') || 5002;
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ export class SystemService {
|
|||
: await this.systemRepo.create(emailConfig);
|
||||
await this.systemRepo.save(newConfig);
|
||||
|
||||
console.log('[think] 已载入文件配置:', newConfig);
|
||||
console.log('[think] 已载入文件配置', JSON.stringify(newConfig, null, 2));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue