Skip to content

Commit

Permalink
Hopefully fix passing --verbose options to Ansible at lng last!
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardomurri committed May 26, 2016
1 parent 6ea467e commit f4bc71f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion elasticluster/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ def pre_run(self):
utils.redirect_warnings(logger='gc3.elasticluster')

# Set verbosity level
loglevel = max(1, logging.WARNING - 10 * max(0, self.params.verbose))
loglevel = max(logging.DEBUG, logging.WARNING - 10 * max(0, self.params.verbose))
coloredlogs.install(logger=log, level=loglevel)
log.setLevel(loglevel)

# In debug mode, avoid forking
if self.params.verbose > 3:
Expand Down

0 comments on commit f4bc71f

Please sign in to comment.