Skip to content

Commit f91d548

Browse files
authored
fix: clean unused bento pieces from serve.py and serving.py (ai-dynamo#532)
1 parent df54b9c commit f91d548

20 files changed

+273
-754
lines changed

deploy/dynamo/sdk/src/dynamo/sdk/cli/cli.py

-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def create_bentoml_cli() -> click.Command:
3636
from dynamo.sdk.cli.run import run_command
3737
from dynamo.sdk.cli.serve import serve_command
3838
from dynamo.sdk.cli.server import cloud_command
39-
from dynamo.sdk.cli.start import start_command
4039
from dynamo.sdk.cli.utils import DynamoCommandGroup
4140

4241
# from dynamo.sdk.cli.cloud import cloud_command
@@ -60,7 +59,6 @@ def bentoml_cli(): # TODO: to be renamed to something....
6059
# Add top-level CLI commands
6160
bentoml_cli.add_command(cloud_command)
6261
bentoml_cli.add_single_command(bento_command, "build")
63-
bentoml_cli.add_subcommands(start_command)
6462
bentoml_cli.add_subcommands(serve_command)
6563
bentoml_cli.add_subcommands(run_command)
6664
# bentoml_cli.add_command(deploy_command)

deploy/dynamo/sdk/src/dynamo/sdk/cli/deploy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def deploy_command(
148148
- a tag to a Bento in local Bento store
149149
- a path to a built Bento
150150
"""
151-
from bentoml._internal.log import configure_server_logging
151+
from dynamo.sdk.lib.logging import configure_server_logging
152152

153153
configure_server_logging()
154154

deploy/dynamo/sdk/src/dynamo/sdk/cli/deployment.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
from rich.table import Table
4141
from simple_di import Provide, inject
4242

43-
logger = logging.getLogger("dynamo.deployment")
43+
logger = logging.getLogger(__name__)
4444

4545
if t.TYPE_CHECKING:
4646
from bentoml._internal.cloud import BentoCloudClient

0 commit comments

Comments
 (0)