Log class refactoring

This commit is contained in:
albexk 2023-11-16 15:30:44 +03:00
parent f1c970461f
commit 617cdf14ad
3 changed files with 26 additions and 65 deletions

View file

@ -144,7 +144,7 @@ class VPNService : BaseVpnService()/* , LocalDnsService.Interface */ {
if (mAlreadyInitialised) {
return
}
Log.init(this)
// Log.init(this)
SharedLibraryLoader.loadSharedLibrary(this, "wg-go")
SharedLibraryLoader.loadSharedLibrary(this, "ovpn3")
Log.i(tag, "Loaded libs")

View file

@ -119,12 +119,12 @@ class VPNServiceBinder(service: VPNService) : Binder() {
ACTIONS.requestGetLog -> {
// Grabs all the Logs and dispatch new Log Event
dispatchEvent(EVENTS.backendLogs, Log.getContent())
// dispatchEvent(EVENTS.backendLogs, Log.getContent())
return true
}
ACTIONS.requestCleanupLog -> {
Log.clearFile()
// Log.clearFile()
return true
}