Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

misc: added message for when session logs aren't uploaded

Sheen Capadngan8bff05b0cf45
diff --git a/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx b/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx
index 0e3854164b..158143d5d3 100644
--- a/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx
+++ b/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx
@@ -69,7 +69,18 @@ export const PamSessionLogsSection = ({ session }: Props) => {
})
) : (
<div className="flex w-full grow items-center justify-center text-bunker-300">
- No session logs
+ {session.startedAt && session.endedAt ? (
+ <div className="text-center">
+ <div className="mb-2">Session logs are not available</div>
+ <div className="text-xs text-bunker-400">
+ Logs failed to upload from the Gateway.
+ <br />
+ Please contact your Gateway administrators.
+ </div>
+ </div>
+ ) : (
+ "No session logs"
+ )}
</div>
)}
</div>