chore: move more logger infos to debugs
This commit is contained in:
@@ -394,7 +394,7 @@ export default class ContactQRScanFull extends Vue {
|
||||
|
||||
this.isCleaningUp = true;
|
||||
try {
|
||||
logger.info("Cleaning up QR scanner resources");
|
||||
logger.debug("Cleaning up QR scanner resources");
|
||||
await this.stopScanning();
|
||||
await QRScannerFactory.cleanup();
|
||||
} catch (error) {
|
||||
@@ -428,7 +428,7 @@ export default class ContactQRScanFull extends Vue {
|
||||
rawValue === this.lastScannedValue &&
|
||||
now - this.lastScanTime < this.SCAN_DEBOUNCE_MS
|
||||
) {
|
||||
logger.info("Ignoring duplicate scan:", rawValue);
|
||||
logger.debug("Ignoring duplicate scan:", rawValue);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -436,7 +436,7 @@ export default class ContactQRScanFull extends Vue {
|
||||
this.lastScannedValue = rawValue;
|
||||
this.lastScanTime = now;
|
||||
|
||||
logger.info("Processing QR code scan result:", rawValue);
|
||||
logger.debug("Processing QR code scan result:", rawValue);
|
||||
|
||||
let contact: Contact;
|
||||
if (rawValue.includes(CONTACT_IMPORT_CONFIRM_URL_PATH_TIME_SAFARI)) {
|
||||
@@ -449,7 +449,7 @@ export default class ContactQRScanFull extends Vue {
|
||||
}
|
||||
|
||||
// Process JWT and contact info
|
||||
logger.info("Decoding JWT payload from QR code");
|
||||
logger.debug("Decoding JWT payload from QR code");
|
||||
const decodedJwt = await decodeEndorserJwt(jwt);
|
||||
if (!decodedJwt?.payload?.own) {
|
||||
logger.warn("Invalid JWT payload - missing 'own' field");
|
||||
@@ -488,7 +488,7 @@ export default class ContactQRScanFull extends Vue {
|
||||
}
|
||||
|
||||
// Add contact but keep scanning
|
||||
logger.info("Adding new contact to database:", {
|
||||
logger.debug("Adding new contact to database:", {
|
||||
did: contact.did,
|
||||
name: contact.name,
|
||||
});
|
||||
@@ -547,7 +547,7 @@ export default class ContactQRScanFull extends Vue {
|
||||
*/
|
||||
async addNewContact(contact: Contact) {
|
||||
try {
|
||||
logger.info("Opening database connection for new contact");
|
||||
logger.debug("Opening database connection for new contact");
|
||||
|
||||
// Check if contact already exists
|
||||
const existingContact = await this.$getContact(contact.did);
|
||||
@@ -561,7 +561,7 @@ export default class ContactQRScanFull extends Vue {
|
||||
await this.$insertContact(contact);
|
||||
|
||||
if (this.activeDid) {
|
||||
logger.info("Setting contact visibility", { did: contact.did });
|
||||
logger.debug("Setting contact visibility", { did: contact.did });
|
||||
await this.setVisibility(contact, true);
|
||||
contact.seesMe = true;
|
||||
}
|
||||
@@ -608,7 +608,7 @@ export default class ContactQRScanFull extends Vue {
|
||||
async handleAppPause() {
|
||||
if (!this.isMounted) return;
|
||||
|
||||
logger.info("App paused, stopping scanner");
|
||||
logger.debug("App paused, stopping scanner");
|
||||
await this.stopScanning();
|
||||
}
|
||||
|
||||
@@ -618,7 +618,7 @@ export default class ContactQRScanFull extends Vue {
|
||||
handleAppResume() {
|
||||
if (!this.isMounted) return;
|
||||
|
||||
logger.info("App resumed, scanner can be restarted by user");
|
||||
logger.debug("App resumed, scanner can be restarted by user");
|
||||
this.isScanning = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user