Skip to content

Commit

Permalink
activate tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
heckj committed May 4, 2024
1 parent 359e102 commit cbb8239
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions MeetingNotes/MeetingNotesApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import AutomergeRepo
import SwiftUI

public let repo = Repo(sharePolicy: SharePolicy.agreeable)
public let websocket = WebSocketProvider()
public let websocket = WebSocketProvider(.init(reconnectOnError: true, loggingAt: .tracing))
public let peerToPeer = PeerToPeerProvider(
PeerToPeerProviderConfiguration(
passcode: "AutomergeMeetingNotes",
reconnectOnError: true,
autoconnect: false
autoconnect: false,
logVerbosity: .tracing
)
)

Expand All @@ -29,6 +30,7 @@ struct MeetingNotesApp: App {

init() {
Task {

await repo.addNetworkAdapter(adapter: websocket)
await repo.addNetworkAdapter(adapter: peerToPeer)
}
Expand Down

0 comments on commit cbb8239

Please sign in to comment.