Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the debug handlers options for verbosity #26

Merged
merged 1 commit into from Jul 24, 2017

Conversation

davepeake
Copy link
Contributor

Since the commands (send_mail etc.) are using the standard -v verbosity in the arg parser, the help for the command shows that there are four verbosity levels (0-3). At the moment if you run

python manage.py send_mail -v3

for instance, it fails with a cryptic message about the key "3" not being present in the LOGGING_LEVEL dictionary. This change duplicates the "2" key so that both 2 and 3 verbosity have the DEBUG message level.

An alternative would be to specify the -v option in each of the commands to only allow -v[0/1/2].

Since the commands are using the standard -v verbosity in the argparser, the help for the command shows that there are four verbosity  levels. At the moment if you run 

python manage.py send_mail -v3 

for instance, it fails with a cryptic message about the key "3" not being present in the LOGGING_LEVEL dictionary. This just duplicates the "2" key so that both 2 and 3 verbosity have the DEBUG message level. An alternative would be to specify the -v option in each of the commands to only allow -v[0/1/2].
@codecov-io
Copy link

codecov-io commented Jul 18, 2017

Codecov Report

Merging #26 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #26   +/-   ##
=======================================
  Coverage   64.39%   64.39%           
=======================================
  Files          14       14           
  Lines         660      660           
  Branches       58       58           
=======================================
  Hits          425      425           
  Misses        214      214           
  Partials       21       21
Impacted Files Coverage Δ
django_yubin/management/commands/__init__.py 78.2% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e1570c1...bdf1029. Read the comment docs.

@coveralls
Copy link

coveralls commented Jul 18, 2017

Coverage Status

Coverage remained the same at 67.964% when pulling bdf1029 on davepeake:patch-1 into e1570c1 on APSL:master.

@sastred
Copy link
Member

sastred commented Jul 24, 2017

Hi @davepeake,

Thanks for the pull request. We are quite busy right now but we will review it as soon as we can.

@sastred sastred merged commit bb70207 into APSL:master Jul 24, 2017
@davepeake davepeake deleted the patch-1 branch September 15, 2017 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants