From 89bfdb344d65841622421c77ccf1d208507d11a4 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Sat, 8 Jun 2013 10:04:07 +0200 Subject: [PATCH] logging for seq store fixed --- nb_send.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nb_send.py b/nb_send.py index a4c978b..b1aa316 100644 --- a/nb_send.py +++ b/nb_send.py @@ -65,7 +65,8 @@ if options.storeseq: s = shelve.open("netbeacon-send.seq") for destination in destinations: k = 'seq:' + str(destination) - print (k) + if logging: + print (k) if k not in s: s[k] = 1 seqstart = s[k]+1