Skip to content

Commit

Permalink
chore: output scan-related logs only in development mode. (#6261)
Browse files Browse the repository at this point in the history
  • Loading branch information
huhuanming authored Nov 22, 2024
1 parent bb7a4e7 commit 5c1c3f7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { devOnlyData } from '@onekeyhq/shared/src/utils/devModeUtils';

import { BaseScene } from '../../../base/baseScene';
import { LogToLocal } from '../../../base/decorators';

Expand All @@ -7,11 +9,11 @@ export class ReadQrCodeScene extends BaseScene {

@LogToLocal({ level: 'info' })
public readFromCamera(value: string) {
return value;
return devOnlyData(value);
}

@LogToLocal({ level: 'info' })
public readFromLibrary(imageResult: string, stringResult: string | null) {
return { imageResult, stringResult };
return devOnlyData({ imageResult, stringResult });
}
}

0 comments on commit 5c1c3f7

Please sign in to comment.