Skip to content

Commit

Permalink
removed debug for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
k-boikov committed May 15, 2023
1 parent d8e3afd commit c329043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogpt/commands/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def command(
"""The command decorator is used to create Command objects from ordinary functions."""

if not enabled:
if disabled_reason is not None and cfg.debug_mode:
if disabled_reason is not None:
logger.debug(f"Command '{name}' is disabled: {disabled_reason}")
return lambda func: func

Expand Down

0 comments on commit c329043

Please sign in to comment.