mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-01 11:36:56 +01:00
Change assertionFailure to log. (It’s not really an error — it’s just a thing that can happen.)
This commit is contained in:
parent
3b17e77358
commit
6797766352
@ -7,10 +7,12 @@
|
||||
|
||||
import Foundation
|
||||
import FoundationExtras
|
||||
import os
|
||||
|
||||
public final class HTMLLinkParser {
|
||||
|
||||
public private(set) var links = [HTMLLink]()
|
||||
nonisolated(unsafe) private static let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "HTMLLinkParser")
|
||||
|
||||
private let parserData: ParserData
|
||||
private let baseURL: URL?
|
||||
@ -61,7 +63,7 @@ extension HTMLLinkParser: SAXHTMLParserDelegate {
|
||||
}
|
||||
|
||||
guard let baseURL, let absoluteURL = URL(string: href, relativeTo: baseURL) else {
|
||||
assertionFailure("Expected to create URL")
|
||||
Self.logger.info("Expected to create URL but got nil with \(href)")
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user