Skip to content

Commit

Permalink
do not set loglevel for spiff log so it can send events to the listen…
Browse files Browse the repository at this point in the history
…er w/ burnettk (#2222)

Co-authored-by: jasquat <[email protected]>
  • Loading branch information
jasquat and jasquat authored Jan 24, 2025
1 parent 3dd3525 commit 09e624a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

def main() -> None:
app = create_app()
process_model_identifier = sys.argv[1]
process_model_identifier = sys.argv[1].replace(":", "/")

with app.app_context():
user = UserModel.query.first()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,3 @@ def setup_loggers(logger: Any, *args: Any, **kwargs: Any) -> None:
stdout_handler.setFormatter(log_formatter)
logger.addHandler(stdout_handler)
setup_logger_for_app(the_flask_app, logger, force_run_with_celery=True)
# this handler is getting added somewhere but not sure where so set its
# level really high since we do not need it
logging.getLogger("spiff").setLevel(logging.CRITICAL)

0 comments on commit 09e624a

Please sign in to comment.