mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-15 20:10:30 +00:00
Log idevice to the documents directory
This commit is contained in:
parent
1ae3326a5d
commit
0bc64bcc72
3 changed files with 4 additions and 1 deletions
|
|
@ -51,6 +51,10 @@ struct HeartbeatApp: App {
|
|||
}
|
||||
return
|
||||
}
|
||||
var log_path = URL.documentsDirectory.appendingPathComponent("idevice_log.txt").path.utf8CString
|
||||
log_path.withUnsafeMutableBufferPointer { buffer in
|
||||
idevice_init_logger(Debug, Debug, buffer.baseAddress)
|
||||
}
|
||||
startProxy() { result, error in
|
||||
if result {
|
||||
checkVPNConnection() { result, vpn_error in
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@
|
|||
void startHeartbeat(IdevicePairingFile* pairing_file, TcpProviderHandle** provider, int* heartbeatSessionId, HeartbeatCompletionHandlerC completion, LogFuncC logger) {
|
||||
int currentSessionId = *heartbeatSessionId;
|
||||
logger("DEBUG: Initializing logger...");
|
||||
idevice_init_logger(Debug, Disabled, NULL);
|
||||
|
||||
struct sockaddr_in addr;
|
||||
memset(&addr, 0, sizeof(addr));
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue