Skip to content

Commit

Permalink
Only print exception in verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Unrud committed Jul 11, 2015
1 parent 9c67152 commit ef3649c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion init-headphone
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import locale
import functools
import logging
import argparse
import traceback

__all__ = ["init", "set_mute", "set_effect", "recovery"]

Expand Down Expand Up @@ -357,5 +358,6 @@ if __name__ == "__main__":
try:
main()
except Exception as e:
logging.exception("Operation failed")
logging.error("Operation failed")
logging.debug("Exception occurred:\n%s" % traceback.format_exc())
exit(1)

0 comments on commit ef3649c

Please sign in to comment.