We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12b817e commit aeafcf1Copy full SHA for aeafcf1
1 file changed
src/fastapi_cloud_cli/commands/logs.py
@@ -14,7 +14,7 @@
14
TooManyRetriesError,
15
)
16
from fastapi_cloud_cli.utils.apps import AppConfig, get_app_config
17
-from fastapi_cloud_cli.utils.auth import is_logged_in
+from fastapi_cloud_cli.utils.auth import Identity
18
from fastapi_cloud_cli.utils.cli import get_rich_toolkit
19
20
logger = logging.getLogger(__name__)
@@ -124,8 +124,9 @@ def logs(
124
),
125
) -> None:
126
"""Stream or fetch logs from your deployed app."""
127
+ identity = Identity()
128
with get_rich_toolkit(minimal=True) as toolkit:
- if not is_logged_in():
129
+ if not identity.is_logged_in():
130
toolkit.print(
131
"No credentials found. Use [blue]`fastapi login`[/] to login.",
132
tag="auth",
0 commit comments