Skip to content

Commit 2e9d8c1

Browse files
[Bug] CLI logging is broken #3118 (#3119)
1 parent 8794785 commit 2e9d8c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/dstack/_internal/cli/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from dstack._internal.cli.commands.stats import StatsCommand
2323
from dstack._internal.cli.commands.stop import StopCommand
2424
from dstack._internal.cli.commands.volume import VolumeCommand
25-
from dstack._internal.cli.utils.common import _colors, console
25+
from dstack._internal.cli.utils.common import _colors, configure_logging, console
2626
from dstack._internal.cli.utils.updates import check_for_updates
2727
from dstack._internal.core.errors import ClientError, CLIError, ConfigurationError, SSHError
2828
from dstack._internal.core.services.ssh.client import get_ssh_client_info
@@ -39,6 +39,8 @@ def main():
3939
RichHelpFormatter.styles["argparse.groups"] = "bold grey74"
4040
RichHelpFormatter.styles["argparse.text"] = "grey74"
4141

42+
configure_logging()
43+
4244
parser = argparse.ArgumentParser(
4345
description=(
4446
"Not sure where to start?"

0 commit comments

Comments
 (0)