From 8aae5bdf3386d31e3bc8c0c133f004f7df0c21f1 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Mon, 17 Apr 2023 16:08:16 +0200 Subject: [PATCH] loguru not print --- services.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services.py b/services.py index 38bebca..2fc7b77 100644 --- a/services.py +++ b/services.py @@ -3,7 +3,7 @@ import json from typing import List, Union from fastapi import WebSocket, WebSocketDisconnect - +from loguru import logger from lnbits.helpers import urlsafe_short_hash from .models import Event, Filter, Filters, Relay, RelayList @@ -105,7 +105,7 @@ class NostrRouter: my_event = received_subscription_notices.pop(0) event_to_forward = ["NOTICE", my_event.content] # 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 # await self.websocket.send_text(json.dumps(event_to_forward)) await asyncio.sleep(0.1)