From 38871c56726b32126c7838ff8e4dbf1222082a15 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Wed, 23 Aug 2017 00:44:22 -0400 Subject: [feature] allow integer for management verbosity --- src/leap/bitmask/vpn/management.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/leap/bitmask/vpn/management.py') diff --git a/src/leap/bitmask/vpn/management.py b/src/leap/bitmask/vpn/management.py index 1994e0b..4aa0e00 100644 --- a/src/leap/bitmask/vpn/management.py +++ b/src/leap/bitmask/vpn/management.py @@ -67,10 +67,10 @@ class ManagementProtocol(LineReceiver): def lineReceived(self, line): if self.verbose: - # TODO get an integer parameter instead - # TODO if very verbose, print everything - # if less verbose, print (log) only the "DEBUG" lines. - print line + if int(self.verbose) > 1: + print line + elif line.startswith('>LOG'): + print line if line[0] == '>': try: -- cgit v1.2.3