server: improve log

pull/140/head
fantasticit 2022-07-30 14:08:49 +08:00
parent ec9d33d3b1
commit 2eb88074db
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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));
}
/**