Skip to content

Commit

Permalink
Fix some logger imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dyedwiper committed Oct 30, 2023
1 parent 504b53f commit 7f11099
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/server/src/apps/helpers/prometheus-metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { createPrometheusMetricsApp } from '@shared/infra/metrics/prometheus/app
import { PrometheusMetricsConfig } from '@shared/infra/metrics/prometheus/config';
import { createAPIResponseTimeMetricMiddleware } from '@shared/infra/metrics/prometheus/middleware';
import { Loggable } from '@src/core/logger/interfaces/loggable';
import { Logger } from '@src/core/logger/logger';
import { LogMessage } from '@src/core/logger/types/logging.types';
import { Express } from 'express';
import { Logger } from 'winston';
import { AppStartLoggable } from './app-start-loggable';

export const enum PrometheusMetricsSetupState {
Expand Down
2 changes: 1 addition & 1 deletion apps/server/src/apps/server.app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import express from 'express';
import { join } from 'path';

// register source-map-support for debugging
import { Logger } from '@src/core/logger/logger';
import { install as sourceMapInstall } from 'source-map-support';
import { Logger } from 'winston';
import { AppStartLoggable } from './helpers/app-start-loggable';
import {
addPrometheusMetricsMiddlewaresIfEnabled,
Expand Down
3 changes: 2 additions & 1 deletion apps/server/src/core/logger/logger.module.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { Module } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { utilities, WinstonModule } from 'nest-winston';
import winston, { Logger } from 'winston';
import winston from 'winston';
import { ErrorLogger } from './error-logger';
import { ILoggerConfig } from './interfaces/logger-config';
import { LegacyLogger } from './legacy-logger.service';
import { Logger } from './logger';

@Module({
imports: [
Expand Down

0 comments on commit 7f11099

Please sign in to comment.