Skip to content

Commit 26b8ebe

Browse files
committed
Adjust logs
1 parent 95f2963 commit 26b8ebe

File tree

3 files changed

+4
-37
lines changed

3 files changed

+4
-37
lines changed

Pro

Submodule Pro updated from b442fe8 to b1452a0

Tool/Sources/SuggestionProvider/SuggestionServiceMiddleware.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,18 @@ public struct DebugSuggestionServiceMiddleware: SuggestionServiceMiddleware {
5252
_ request: SuggestionRequest,
5353
next: Next
5454
) async throws -> [CodeSuggestion] {
55-
Logger.service.debug("""
55+
Logger.service.info("""
5656
Get suggestion for \(request.fileURL) at \(request.cursorPosition)
5757
""")
5858
do {
5959
let suggestions = try await next(request)
60-
Logger.service.debug("""
60+
Logger.service.info("""
6161
Receive \(suggestions.count) suggestions for \(request.fileURL) \
6262
at \(request.cursorPosition)
6363
""")
6464
return suggestions
6565
} catch {
66-
Logger.service.debug("""
66+
Logger.service.info("""
6767
Error: \(error.localizedDescription)
6868
""")
6969
throw error

Tool/Sources/XcodeInspector/XcodeInspector.swift

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -327,39 +327,6 @@ public final class XcodeInspector: ObservableObject {
327327
private func checkForAccessibilityMalfunction(_ source: String) {
328328
guard Date().timeIntervalSince(lastRecoveryFromAccessibilityMalfunctioningTimeStamp) > 5
329329
else { return }
330-
331-
Logger.service.debug("""
332-
Check for Accessibility Malfunctioning:
333-
Source Editor: \({
334-
if let editor = self.focusedEditor {
335-
return editor.element.description
336-
}
337-
return "Not Found"
338-
}())
339-
Focused Element: \({
340-
if let element = self.focusedElement {
341-
return "\(element.description), \(element.identifier), \(element.role)"
342-
}
343-
return "Not Found"
344-
}())
345-
346-
Accessibility API Permission: \(
347-
AXIsProcessTrusted() ? "Granted" :
348-
"Not Granted"
349-
)
350-
App: \(
351-
activeApplication?.runningApplication
352-
.bundleIdentifier ?? ""
353-
)
354-
Focused Element: \({
355-
guard let element = self.activeApplication?.appElement
356-
.focusedElement
357-
else {
358-
return "Not Found"
359-
}
360-
return "\(element.description), \(element.identifier), \(element.role)"
361-
}())
362-
""")
363330

364331
if let editor = focusedEditor, !editor.element.isSourceEditor {
365332
NSWorkspace.shared.notificationCenter.post(

0 commit comments

Comments
 (0)