Skip to content

Commit

Permalink
fix: configure server logging before importing service (#4744)
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <me@frostming.com>
  • Loading branch information
frostming committed May 22, 2024
1 parent 1977c42 commit 2868cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_bentoml_impl/worker/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def main(
from bentoml._internal.context import server_context
from bentoml._internal.log import configure_server_logging

configure_server_logging()
if runner_map:
BentoMLContainer.remote_runner_mapping.set(
t.cast(t.Dict[str, str], json.loads(runner_map))
Expand All @@ -169,7 +170,6 @@ def main(
if worker_id is not None:
server_context.worker_index = worker_id

configure_server_logging()
BentoMLContainer.development_mode.set(development_mode)

if prometheus_dir is not None:
Expand Down

0 comments on commit 2868cd1

Please sign in to comment.