loguru not print
This commit is contained in:
parent
ca30e730ab
commit
8aae5bdf33
1 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@ import json
|
||||||
from typing import List, Union
|
from typing import List, Union
|
||||||
|
|
||||||
from fastapi import WebSocket, WebSocketDisconnect
|
from fastapi import WebSocket, WebSocketDisconnect
|
||||||
|
from loguru import logger
|
||||||
from lnbits.helpers import urlsafe_short_hash
|
from lnbits.helpers import urlsafe_short_hash
|
||||||
|
|
||||||
from .models import Event, Filter, Filters, Relay, RelayList
|
from .models import Event, Filter, Filters, Relay, RelayList
|
||||||
|
|
@ -105,7 +105,7 @@ class NostrRouter:
|
||||||
my_event = received_subscription_notices.pop(0)
|
my_event = received_subscription_notices.pop(0)
|
||||||
event_to_forward = ["NOTICE", my_event.content]
|
event_to_forward = ["NOTICE", my_event.content]
|
||||||
# send data back to client
|
# send data back to client
|
||||||
print("Received notice", event_to_forward)
|
logger.debug("Nostrclient: Received notice", event_to_forward[1])
|
||||||
# note: we don't send it to the user because we don't know who should receive it
|
# note: we don't send it to the user because we don't know who should receive it
|
||||||
# await self.websocket.send_text(json.dumps(event_to_forward))
|
# await self.websocket.send_text(json.dumps(event_to_forward))
|
||||||
await asyncio.sleep(0.1)
|
await asyncio.sleep(0.1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue