Skip to content

Commit

Permalink
feat(shippy): add debug mode config option
Browse files Browse the repository at this point in the history
  • Loading branch information
ericswpark committed Jan 27, 2024
1 parent 35dcebe commit ea45c9b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion shippy/shippy/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,10 @@ def is_build_disabling_enabled():
return False


def check_debug_mode(args):
return args.debug or get_optional_true_config_value("shippy", "debug")


def main():
# Get commandline arguments
args = init_argparse()
Expand All @@ -383,7 +387,7 @@ def main():
print(__version__)
return

if args.debug:
if check_debug_mode(args):
print_warning("Debug mode has been turned on!")
logger.add(sink="shippy_{time}.log", level="DEBUG", enqueue=True)

Expand Down

0 comments on commit ea45c9b

Please sign in to comment.