Skip to content

Commit

Permalink
updated logs
Browse files Browse the repository at this point in the history
  • Loading branch information
proksh committed Dec 27, 2024
1 parent 77742ce commit f2e2311
Showing 1 changed file with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ struct ViewHierarchyHandler: HTTPHandler {
let body = try JSONEncoder().encode(viewHierarchy)
return HTTPResponse(statusCode: .ok, body: body)
} catch let error as AppError {
logger.error("AppError in handleRequest, RequestBody:\(requestBody) Error:\(error)");

Check failure on line 40 in maestro-ios-xctest-runner/maestro-driver-iosUITests/Routes/Handlers/ViewHierarchyHandler.swift

View workflow job for this annotation

GitHub Actions / Build on Java 11

type of expression is ambiguous without a type annotation

Check failure on line 40 in maestro-ios-xctest-runner/maestro-driver-iosUITests/Routes/Handlers/ViewHierarchyHandler.swift

View workflow job for this annotation

GitHub Actions / Build on Java 17

type of expression is ambiguous without a type annotation
return error.httpResponse
} catch let error {
logger.error("Error in handleRequest, RequestBody:\(requestBody) Error:\(error)");

Check failure on line 43 in maestro-ios-xctest-runner/maestro-driver-iosUITests/Routes/Handlers/ViewHierarchyHandler.swift

View workflow job for this annotation

GitHub Actions / Build on Java 11

type of expression is ambiguous without a type annotation

Check failure on line 43 in maestro-ios-xctest-runner/maestro-driver-iosUITests/Routes/Handlers/ViewHierarchyHandler.swift

View workflow job for this annotation

GitHub Actions / Build on Java 17

type of expression is ambiguous without a type annotation
return AppError(message: "Snapshot failure while getting view hierarchy. Error: \(error.localizedDescription)").httpResponse
}
}
Expand Down Expand Up @@ -122,17 +124,7 @@ struct ViewHierarchyHandler: HTTPHandler {
}

let alerts = logger.measure(message: "Fetch alert hierarchy") {
fullScreenAlertHierarchy(element) {
logger.info("Alert hierarchy fetched successfully.")
} else {
logger.warning("No alerts found in app hierarchy.")
}
}

let other = try? customWindowElements(element) {
logger.info("Custom window elements fetched successfully.")
} else {
logger.warning("No custom window elements found.")
fullScreenAlertHierarchy(element)
}
return AXElement(children: [
other,

Check failure on line 130 in maestro-ios-xctest-runner/maestro-driver-iosUITests/Routes/Handlers/ViewHierarchyHandler.swift

View workflow job for this annotation

GitHub Actions / Build on Java 11

cannot find 'other' in scope

Check failure on line 130 in maestro-ios-xctest-runner/maestro-driver-iosUITests/Routes/Handlers/ViewHierarchyHandler.swift

View workflow job for this annotation

GitHub Actions / Build on Java 17

cannot find 'other' in scope
Expand Down

0 comments on commit f2e2311

Please sign in to comment.