mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
[WIP] Quotes
This commit is contained in:
@@ -108,6 +108,8 @@ public final class Logger {
|
||||
setPostboxLogger({ s in
|
||||
Logger.shared.log("Postbox", s)
|
||||
Logger.shared.shortLog("Postbox", s)
|
||||
}, sync: {
|
||||
Logger.shared.sync()
|
||||
})
|
||||
}
|
||||
|
||||
@@ -128,6 +130,14 @@ public final class Logger {
|
||||
self.basePath = basePath
|
||||
}
|
||||
|
||||
public func sync() {
|
||||
self.queue.sync {
|
||||
if let (currentFile, _) = self.file {
|
||||
let _ = currentFile.sync()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func collectLogs(prefix: String? = nil) -> Signal<[(String, String)], NoError> {
|
||||
return Signal { subscriber in
|
||||
self.queue.async {
|
||||
|
||||
Reference in New Issue
Block a user