Skip to content

Commit

Permalink
fix: don't log depth twice in hierarchy call (#2243)
Browse files Browse the repository at this point in the history
  • Loading branch information
amanjeetsingh150 authored Jan 13, 2025
1 parent 7fe934d commit 183c126
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified maestro-ios-driver/src/main/resources/maestro-driver-ios.zip
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ struct ViewHierarchyHandler: HTTPHandler {
}

func getHierarchyWithFallback(_ element: XCUIElement) throws -> AXElement {
logger.info("Starting getHierarchyWithFallback for element: \(element.debugDescription)")
logger.info("Starting getHierarchyWithFallback for element.")

do {
var hierarchy = try elementHierarchy(xcuiElement: element)
logger.info("Successfully retrieved element hierarchy. Depth: \(hierarchy.depth())")
logger.info("Successfully retrieved element hierarchy.")

if hierarchy.depth() < snapshotMaxDepth {
return hierarchy
Expand Down

0 comments on commit 183c126

Please sign in to comment.