Skip to content

Commit

Permalink
chore(prod-server): remove duplicated logger module (#4650)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Sep 14, 2023
1 parent 0db5680 commit 4980480
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 152 deletions.
8 changes: 8 additions & 0 deletions .changeset/rotten-bees-wash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@modern-js/prod-server': patch
'@modern-js/utils': patch
---

chore(prod-server): remove duplicated logger module

chore(prod-server): 移除重复的 logger 模块
150 changes: 0 additions & 150 deletions packages/server/prod-server/src/libs/logger.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/server/prod-server/src/workerServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import {
Reporter,
} from '@modern-js/types';
import { createAsyncPipeline } from '@modern-js/plugin';
import { Logger, LoggerInterface } from '@modern-js/utils/logger';
import {
WorkerServerContext,
createAfterMatchContext,
createAfterRenderContext,
createMiddlewareContext,
} from './libs/hook-api/index.worker';
import { Logger, LoggerInterface } from './libs/logger';
import { ModernRouteInterface, RouteMatchManager } from './libs/route';
import { metrics as defaultMetrics } from './libs/metrics';
import { defaultReporter } from './libs/reporter';
Expand Down
2 changes: 1 addition & 1 deletion packages/toolkit/utils/src/cli/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const LOG_TYPES = {
},
success: {
color: 'green',
label: 'Success',
label: 'success',
level: 'info',
},
warn: {
Expand Down

0 comments on commit 4980480

Please sign in to comment.