Skip to content

Commit

Permalink
add --debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jodyphelan committed Jul 4, 2024
1 parent bc23fd9 commit e5893ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tb-profiler
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,8 @@ parser_sub.set_defaults(func=main_version)

args = parser.parse_args()

if args.debug:
args.logging = "DEBUG"
logging.basicConfig(
level=args.logging, format="%(message)s", datefmt="[%X]", handlers=[RichHandler()]
)
Expand Down

0 comments on commit e5893ad

Please sign in to comment.