File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -637,12 +637,13 @@ def _setup_logging(parsed_args):
637
637
if __opts__ ['daemonize' ]:
638
638
__opts__ ['log_level' ] = 'info'
639
639
# 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'
646
647
# Console logging is probably the same, but can be different
647
648
console_logging_opts = {
648
649
'log_level' : __opts__ .get ('console_log_level' , __opts__ ['log_level' ]),
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ def mark(self, timestamp=None):
254
254
timestamp = time .time ()
255
255
self = self .get_bucket (timestamp )
256
256
else :
257
- if isinstance (timestamp , (str , unicode )):
257
+ if isinstance (timestamp , (str )):
258
258
timestamp = int (timestamp )
259
259
self = self .get_bucket (timestamp )
260
260
if timestamp < self .first_t :
You can’t perform that action at this time.
0 commit comments