Skip to content

Commit

Permalink
move certain logs to debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
saikrishna321 committed May 6, 2024
1 parent 3fbd816 commit c716730
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/CapabilityManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function deleteAlwaysMatch(caps: ISessionCapability, capabilityName: string) {
async function findAppPath(caps: any) {
if (caps.alwaysMatch['df:skipReport']) return;
const fileName = caps.alwaysMatch['appium:app'] || caps.firstMatch[0]['appium:app'];
if (fileName.startsWith('file')) {
if (fileName?.startsWith('file')) {
const appInfo: any = await prisma.appInformation.findFirst({
where: { uploadedFileName: fileName as string },
});
Expand Down
4 changes: 2 additions & 2 deletions src/data-service/device-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export async function addNewDevice(devices: IDevice[], host?: string): Promise<I
log.warn(`Unable to add device "${device.udid}" to database. Reason: ${error}`);
}
} else {
log.debug(`Device "${device.udid}" already exists in database`);
debugLog(`Device "${device.udid}" already exists in database`);
}
});

Expand Down Expand Up @@ -377,7 +377,7 @@ export async function unblockDeviceMatchingFilter(filter: object) {
},
);

log.debug(`Unblocked device ${device.udid} from host ${device.host}`);
debugLog(`Unblocked device ${device.udid} from host ${device.host}`);
}),
).catch((error) => {
log.error(`Unable to unblock device. Reason: ${error}`);
Expand Down

0 comments on commit c716730

Please sign in to comment.