Skip to content

Commit

Permalink
Merge pull request #146 from Tenzer/make-debug-output-opt-in
Browse files Browse the repository at this point in the history
Add `--debug` flag to enable debug logging, otherwise default to info level
  • Loading branch information
klattimer authored Dec 10, 2023
2 parents 90d1d14 + a6736d8 commit 95c289e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion LGTV/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ def main():
parser.add_argument('command')
parser.add_argument('args', nargs='*')
parser.add_argument('--ssl', action='store_true')
parser.add_argument('--debug', '-d', action='store_true', help='enable debug output')
args = parser.parse_args()

logging.basicConfig(level=logging.DEBUG)
logging.basicConfig(level=logging.DEBUG if args.debug else logging.INFO)

config = {}

Expand Down

0 comments on commit 95c289e

Please sign in to comment.