Skip to content

Commit

Permalink
Add log for unknown service
Browse files Browse the repository at this point in the history
  • Loading branch information
henrist committed Mar 29, 2024
1 parent 79a8cf9 commit 6827507
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deployer/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def deploy(service_locks: ServiceLocks, config: Config, deployer: Deployer):
return text_response("Invalid model", 400)

if model.service not in config.services:
current_app.logger.info(f"Unknown service: {model.service}")
return text_response("Unknown service", 400)

service = config.services[model.service]
Expand Down

0 comments on commit 6827507

Please sign in to comment.