From e15cfeb943a43c744fc0bcd960b6784a98a40afc Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Tue, 6 Dec 2022 21:05:09 +0100 Subject: [PATCH] print only if migration takes place --- lnbits/core/migrations.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lnbits/core/migrations.py b/lnbits/core/migrations.py index eabe5a7c5..2bffa5c77 100644 --- a/lnbits/core/migrations.py +++ b/lnbits/core/migrations.py @@ -223,7 +223,8 @@ async def m007_set_invoice_expiries(db): """ ) ).fetchall() - logger.info(f"Mirgraion: Checking expiry of {len(rows)} invoices") + if len(rows): + logger.info(f"Mirgraion: Checking expiry of {len(rows)} invoices") for i, ( payment_request, checking_id,