mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Remove the createSpan method entirely
As it's easier to live without it than to deal with the API redesign or or misuse panics.
This commit is contained in:
@@ -23,14 +23,6 @@ nonisolated enum MXLog {
|
||||
rootSpan.enter()
|
||||
}
|
||||
|
||||
static func createSpan(_ name: String,
|
||||
file: String = #file,
|
||||
function: String = #function,
|
||||
line: Int = #line,
|
||||
column: Int = #column) -> Span {
|
||||
createSpan(name, level: .info, file: file, function: function, line: line, column: column)
|
||||
}
|
||||
|
||||
static func verbose(_ message: Any,
|
||||
file: String = #file,
|
||||
function: String = #function,
|
||||
@@ -112,20 +104,6 @@ nonisolated enum MXLog {
|
||||
|
||||
// MARK: - Private
|
||||
|
||||
// periphery:ignore:parameters function,column
|
||||
private static func createSpan(_ name: String,
|
||||
level: LogLevel,
|
||||
file: String = #file,
|
||||
function: String = #function,
|
||||
line: Int = #line,
|
||||
column: Int = #column) -> Span {
|
||||
if Span.current().isNone() {
|
||||
rootSpan.enter()
|
||||
}
|
||||
|
||||
return Span(file: file, line: UInt32(line), level: level.rustLogLevel, target: currentTarget, name: name, bridgeTraceId: nil)
|
||||
}
|
||||
|
||||
// periphery:ignore:parameters function,column
|
||||
private static func log(_ message: Any,
|
||||
level: LogLevel,
|
||||
|
||||
Reference in New Issue
Block a user