From 54484fa4fe9a67bfed75cc8475463fea4ff878b3 Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Thu, 28 Nov 2024 08:47:07 +0100 Subject: [PATCH] remove print --- nostr_dvm/dvm.py | 1 - nostr_dvm/subscription.py | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nostr_dvm/dvm.py b/nostr_dvm/dvm.py index 0154389..dd341cd 100644 --- a/nostr_dvm/dvm.py +++ b/nostr_dvm/dvm.py @@ -92,7 +92,6 @@ class DVM: keys = self.keys async def handle(self, relay_url, subscription_id, nostr_event: Event): - print(nostr_event.as_json()) if self.dvm_config.LOGLEVEL.value >= LogLevel.DEBUG.value: print(nostr_event.as_json()) if EventDefinitions.KIND_NIP90_EXTRACT_TEXT.as_u16() <= nostr_event.kind().as_u16() <= EventDefinitions.KIND_NIP90_GENERIC.as_u16(): diff --git a/nostr_dvm/subscription.py b/nostr_dvm/subscription.py index 01b7707..5ac3f89 100644 --- a/nostr_dvm/subscription.py +++ b/nostr_dvm/subscription.py @@ -15,6 +15,7 @@ from nostr_dvm.utils.nip88_utils import nip88_has_active_subscription from nostr_dvm.utils.nip89_utils import NIP89Config from nostr_dvm.utils.nostr_utils import send_event from nostr_dvm.utils.nwc_tools import nwc_zap +from nostr_dvm.utils.print_utils import bcolors from nostr_dvm.utils.subscription_utils import create_subscription_sql_table, add_to_subscription_sql_table, \ get_from_subscription_sql_table, update_subscription_sql_table, get_all_subscriptions_from_sql_table, \ delete_from_subscription_sql_table @@ -44,9 +45,9 @@ class Subscription: pk = self.keys.public_key() self.job_list = [] + print(bcolors.BLUE + "[Subscription] " + "Nostr Subscription Handler public key: " + str( + pk.to_bech32()) + " Hex: " + str(pk.to_hex()) + "\n" + bcolors.ENDC) - print("Nostr Subscription Handler public key: " + str(pk.to_bech32()) + " Hex: " + str( - pk.to_hex()) + "\n") for relay in self.dvm_config.RELAY_LIST: await self.client.add_relay(relay)