mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
refactor and cleanup [skip ci]
This commit is contained in:
11
submodules/Postbox/Sources/PostboxLogging.swift
Normal file
11
submodules/Postbox/Sources/PostboxLogging.swift
Normal file
@@ -0,0 +1,11 @@
|
||||
import Foundation
|
||||
|
||||
private var postboxLogger: (String) -> Void = { _ in }
|
||||
|
||||
public func setPostboxLogger(_ f: @escaping (String) -> Void) {
|
||||
postboxLogger = f
|
||||
}
|
||||
|
||||
func postboxLog(_ what: @autoclosure () -> String) {
|
||||
postboxLogger(what())
|
||||
}
|
||||
Reference in New Issue
Block a user