Skip to content

Commit

Permalink
style: 暂时屏蔽 requestMessage 相关日志
Browse files Browse the repository at this point in the history
  • Loading branch information
ronggang committed Sep 4, 2019
1 parent a1a4909 commit 5e8f1ac
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions src/background/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,31 +71,31 @@ export default class PTPlugin {
console.log("requestMessage", request.action);
return new Promise<any>((resolve?: any, reject?: any) => {
let result: any;
if (
![
EAction.getSystemLogs,
EAction.writeLog,
EAction.readConfig,
EAction.saveConfig,
EAction.saveUIOptions,
EAction.openOptions,
EAction.getClearedOptions,
EAction.getBase64FromImageUrl,
EAction.changeLanguage,
EAction.addLanguage,
EAction.getCurrentLanguageResource,
EAction.replaceLanguage,
EAction.readUIOptions,
EAction.addContentPage,
EAction.getDownloadHistory,
EAction.getTorrentDataFromURL
].includes(request.action)
) {
this.logger.add({
module: EModule.background,
event: `${ELogEvent.requestMessage}.${request.action}`
});
}
// if (
// ![
// EAction.getSystemLogs,
// EAction.writeLog,
// EAction.readConfig,
// EAction.saveConfig,
// EAction.saveUIOptions,
// EAction.openOptions,
// EAction.getClearedOptions,
// EAction.getBase64FromImageUrl,
// EAction.changeLanguage,
// EAction.addLanguage,
// EAction.getCurrentLanguageResource,
// EAction.replaceLanguage,
// EAction.readUIOptions,
// EAction.addContentPage,
// EAction.getDownloadHistory,
// EAction.getTorrentDataFromURL
// ].includes(request.action)
// ) {
// this.logger.add({
// module: EModule.background,
// event: `${ELogEvent.requestMessage}.${request.action}`
// });
// }

try {
switch (request.action) {
Expand Down

0 comments on commit 5e8f1ac

Please sign in to comment.