Skip to content

Commit

Permalink
cleanup global variable names. #43
Browse files Browse the repository at this point in the history
  • Loading branch information
davemfish committed Jan 6, 2025
1 parent 51e933a commit 866b15f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/geometamaker/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

import geometamaker

root_logger = logging.getLogger()
root_logger.setLevel(logging.DEBUG)
handler = logging.StreamHandler(sys.stdout)
formatter = logging.Formatter(
ROOT_LOGGER = logging.getLogger()
ROOT_LOGGER.setLevel(logging.DEBUG)
HANDLER = logging.StreamHandler(sys.stdout)
FORMATTER = logging.Formatter(
fmt='%(asctime)s %(name)-18s %(levelname)-8s %(message)s',
datefmt='%m/%d/%Y %H:%M:%S ')
handler.setFormatter(formatter)
HANDLER.setFormatter(FORMATTER)


@click.command(
Expand Down Expand Up @@ -149,8 +149,8 @@ def config(individual_name, email, organization, position_name,
@click.version_option(message="%(version)s")
def cli(verbosity):
log_level = logging.ERROR - verbosity*10
handler.setLevel(log_level)
root_logger.addHandler(handler)
HANDLER.setLevel(log_level)
ROOT_LOGGER.addHandler(HANDLER)


cli.add_command(describe)
Expand Down

0 comments on commit 866b15f

Please sign in to comment.