Skip to content

Commit

Permalink
Update log funName with '[Bridge]' prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
vince-hz committed Nov 3, 2023
1 parent 9b6a4ef commit 6d743c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ let reportToNative = false;
export function enableReport(enable: boolean) { reportToNative = enable; }

export function logger(funName: string, ...params: any[]) {
funName = `[Brige]${funName}}`;
console.log(funName, ...params);
report(reportToNative, funName, ...params);
}
Expand Down

0 comments on commit 6d743c6

Please sign in to comment.