diff --git a/implementations/Libp2pComponent.ts b/implementations/Libp2pComponent.ts index 6a5fe63..9808506 100644 --- a/implementations/Libp2pComponent.ts +++ b/implementations/Libp2pComponent.ts @@ -4,6 +4,7 @@ import { NativeEventEmitter, NativeModules } from 'react-native'; import AsyncStorage from '@react-native-async-storage/async-storage'; +import { LoggerComponent } from 'ior:gitea:gitea.metatrom.net:universal-components/logger@1.0.0'; import { LIBP2P_CONFIG } from '../utils/constants'; import type { ConnectionStatusEvent, PeerDiscoveredEvent, PeerInfoEvent } from '../utils/types'; import type { @@ -16,6 +17,9 @@ import type { PeerInfo, } from '../interfaces/ILibp2pComponent'; +// Create logger instance for this module +const logger = new LoggerComponent('Libp2pComponent'); + // Helper class to create PeerId-like objects from strings export class SimplePeerId implements PeerId { constructor(private id: string) {}