mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-12 23:30:35 +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.
|
// Remove operation-audit details (operator/route info), admin-only.
|
||||||
delete(otherMap, "audit_info")
|
delete(otherMap, "audit_info")
|
||||||
// delete(otherMap, "reject_reason")
|
// delete(otherMap, "reject_reason")
|
||||||
delete(otherMap, "stream_status")
|
// delete(otherMap, "stream_status")
|
||||||
}
|
}
|
||||||
logs[i].Other = common.MapToJsonStr(otherMap)
|
logs[i].Other = common.MapToJsonStr(otherMap)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1107,10 +1107,8 @@ export function DetailsDialog(props: DetailsDialogProps) {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Stream status details (admin only) */}
|
{/* Stream status details */}
|
||||||
{props.isAdmin &&
|
{other?.stream_status && other.stream_status.status !== 'ok' && (
|
||||||
other?.stream_status &&
|
|
||||||
other.stream_status.status !== 'ok' && (
|
|
||||||
<DetailSection label={t('Stream Status')}>
|
<DetailSection label={t('Stream Status')}>
|
||||||
<DetailRow
|
<DetailRow
|
||||||
label={t('Status')}
|
label={t('Status')}
|
||||||
|
|||||||
Reference in New Issue
Block a user