We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b44372 commit f93c6aeCopy full SHA for f93c6ae
1 file changed
src/index.ts
@@ -1,7 +1,7 @@
1
import { createHash } from 'node:crypto';
2
import { readFileSync, writeFileSync } from 'node:fs';
3
import { resolve } from 'node:path';
4
-import { cheerio } from '@winner-fed/utils';
+import { cheerio, logger } from '@winner-fed/utils';
5
import type { IApi } from '@winner-fed/winjs';
6
7
interface SecurityConfig {
@@ -63,7 +63,7 @@ export default (api: IApi) => {
63
);
64
source = readFileSync(resourcePath);
65
} catch (error) {
66
- console.warn(`无法读取资源文件: ${resourceUrl}`, error);
+ logger.warn(`无法读取资源文件: ${resourceUrl}`, error);
67
return;
68
}
69
0 commit comments