fix: 整理日志、添加颜色、使用统一的日志函数以提高日志可读性
This commit is contained in:
1 parent
c698ce9562
commit
bac2a6b034
15 files changed
+96
-68
No files matched your search
@@ -9,6 +9,7 @@ import {
|
||||
} from '@/core/entities';
|
||||
import { dbUtil } from '@/common/utils/db';
|
||||
import { NTQQFileApi, NTQQFileCacheApi } from '@/core/apis/file';
|
||||
import { logError } from '@/common/utils/log';
|
||||
|
||||
export default class CleanCache extends BaseAction<void, void> {
|
||||
actionName = ActionName.CleanCache;
|
||||
@@ -62,7 +63,7 @@ export default class CleanCache extends BaseAction<void, void> {
|
||||
await NTQQFileCacheApi.clearChatCache(chatCacheList, cacheFileList);
|
||||
res();
|
||||
} catch(e) {
|
||||
console.error('清理缓存时发生了错误');
|
||||
logError('清理缓存时发生了错误');
|
||||
rej(e);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user