Skip to content

Commit 47e3b98

Browse files
committed
fix changes
1 parent ab17307 commit 47e3b98

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

hubblestack/daemon.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -637,12 +637,13 @@ def _setup_logging(parsed_args):
637637
if __opts__['daemonize']:
638638
__opts__['log_level'] = 'info'
639639
# Handle the explicit -vvv settings
640-
if __opts__['verbose'] == 1:
641-
__opts__['log_level'] = 'warning'
642-
elif __opts__['verbose'] == 2:
643-
__opts__['log_level'] = 'info'
644-
elif __opts__['verbose'] >= 3:
645-
__opts__['log_level'] = 'debug'
640+
if __opts__['verbose']:
641+
if __opts__['verbose'] == 1:
642+
__opts__['log_level'] = 'warning'
643+
elif __opts__['verbose'] == 2:
644+
__opts__['log_level'] = 'info'
645+
elif __opts__['verbose'] >= 3:
646+
__opts__['log_level'] = 'debug'
646647
# Console logging is probably the same, but can be different
647648
console_logging_opts = {
648649
'log_level': __opts__.get('console_log_level', __opts__['log_level']),

hubblestack/status.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def mark(self, timestamp=None):
254254
timestamp = time.time()
255255
self = self.get_bucket(timestamp)
256256
else:
257-
if isinstance(timestamp, (str, unicode)):
257+
if isinstance(timestamp, (str)):
258258
timestamp = int(timestamp)
259259
self = self.get_bucket(timestamp)
260260
if timestamp < self.first_t:

0 commit comments

Comments
 (0)