     }
     
     func initializePublisherStream() {
+        Logger.debug(type: .peerChannel, message: "init publisher stream")
+
         let nativeStream = NativePeerChannelFactory.default
             .createNativePublisherStream(streamId: configuration.publisherStreamId,
                                          videoTrackId:

        switch configuration.role {
        case .publisher:
            role = .upstream
            initializePublisherStream()
        case .subscriber:
            role = .downstream
        case .group:
            role = .upstream
            multistream = true
            initializePublisherStream()
        case .groupSub:
            role = .downstream
            multistream = true

        }
        
        lock.lock()
        createAnswer(initsPublisher: true,
                offer: offer.sdp,
                constraints: webRTCConfiguration.nativeConstraints)
        { sdp, error in
            guard error == nil else {
                Logger.error(type: .peerChannel,
