iOS build fixes
This commit is contained in:
parent
ece15c7394
commit
0c6d193e0f
2 changed files with 4 additions and 1 deletions
|
@ -183,6 +183,9 @@ EXPORT bool key_eq(const uint8_t key1[WG_KEY_LEN], const uint8_t key2[WG_KEY_LEN
|
|||
|
||||
|
||||
EXPORT void write_msg_to_log(const char* tag, const char* msg) {
|
||||
#ifndef NETWORK_EXTENSION
|
||||
// logger.debug() << "Swift log - tag:" << tag << "msg: " << msg;
|
||||
#else
|
||||
os_log_with_type(OS_LOG_DEFAULT, OS_LOG_TYPE_DEBUG, "tag: %s - msg: %s", tag, msg);
|
||||
|
||||
@autoreleasepool {
|
||||
|
|
|
@ -17,7 +17,7 @@ public class Logger {
|
|||
deinit {}
|
||||
|
||||
func log(message: String) {
|
||||
let suiteName = [NSString stringWithUTF8String:GROUP_ID]
|
||||
let suiteName = "group.org.amnezia.AmneziaVPN"
|
||||
let logKey = "logMessages"
|
||||
let sharedDefaults = UserDefaults(suiteName: suiteName)
|
||||
var logs = sharedDefaults?.array(forKey: logKey) as? [String] ?? []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue