Skip to content

Commit

Permalink
Add --debug flag to enable debug logging, otherwise default to info…
Browse files Browse the repository at this point in the history
… level

Most users probably don't care about all the work to initiate connections and
closing them again. This makes the output cleaner and could work as a good
step towards refining the output from the utility.
  • Loading branch information
Tenzer committed Dec 9, 2023
1 parent 63e0e50 commit a6736d8
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 @@ -107,9 +107,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 a6736d8

Please sign in to comment.