mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-29 16:54:12 +00:00
Change assertionFailure to log. (It’s not really an error — it’s just a thing that can happen.)
This commit is contained in:
1 parent
3b17e77358
commit
6797766352
1 file changed
+3
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user