mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-13 15:54:34 +00:00
feat(logs): expose stream status to log owners (#6558)
This commit is contained in:
+1
-1
@@ -124,7 +124,7 @@ func formatUserLogs(logs []*Log, startIdx int) {
|
||||
// Remove operation-audit details (operator/route info), admin-only.
|
||||
delete(otherMap, "audit_info")
|
||||
// delete(otherMap, "reject_reason")
|
||||
delete(otherMap, "stream_status")
|
||||
// delete(otherMap, "stream_status")
|
||||
}
|
||||
logs[i].Other = common.MapToJsonStr(otherMap)
|
||||
}
|
||||
|
||||
@@ -1107,10 +1107,8 @@ export function DetailsDialog(props: DetailsDialogProps) {
|
||||
/>
|
||||
)}
|
||||
|
||||
{/* Stream status details (admin only) */}
|
||||
{props.isAdmin &&
|
||||
other?.stream_status &&
|
||||
other.stream_status.status !== 'ok' && (
|
||||
{/* Stream status details */}
|
||||
{other?.stream_status && other.stream_status.status !== 'ok' && (
|
||||
<DetailSection label={t('Stream Status')}>
|
||||
<DetailRow
|
||||
label={t('Status')}
|
||||
|
||||
Reference in New Issue
Block a user