feat: change updateandgettimestampdiff from private to protected

This commit is contained in:
ian
2023-03-26 12:41:41 +08:00
parent cde4e7f324
commit 4cad5067a3
4 changed files with 8 additions and 5 deletions

3
.gitignore vendored
View File

@@ -42,3 +42,6 @@ yarn-error.log
/packages/graphql
/benchmarks/memory
build/config\.gypi
.npmrc
pnpm-lock.yaml

View File

@@ -1,8 +1,8 @@
import { NestFactory } from '@nestjs/core';
import { ApplicationModule } from './app.module';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(ApplicationModule);
const app = await NestFactory.create(AppModule);
await app.listen(3000);
}
bootstrap();

View File

@@ -251,7 +251,7 @@ export class ConsoleLogger implements LoggerService {
process.stderr.write(`${stack}\n`);
}
private updateAndGetTimestampDiff(): string {
protected updateAndGetTimestampDiff(): string {
const includeTimestamp =
ConsoleLogger.lastTimestampAt && this.options?.timestamp;
const result = includeTimestamp

View File

@@ -253,7 +253,7 @@ export class Logger implements LoggerService {
/**
* Attach buffer.
* Turns on initialisation logs buffering.
* Turns on initialization logs buffering.
*/
static attachBuffer() {
this.isBufferAttached = true;
@@ -261,7 +261,7 @@ export class Logger implements LoggerService {
/**
* Detach buffer.
* Turns off initialisation logs buffering.
* Turns off initialization logs buffering.
*/
static detachBuffer() {
this.isBufferAttached = false;