mirror of
https://github.com/minio/minio.git
synced 2025-12-08 08:42:43 -05:00
obd: Add console log to OBD output (#10372)
This commit is contained in:
@@ -148,6 +148,19 @@ func getLocalMemOBD(ctx context.Context, r *http.Request) madmin.ServerMemOBDInf
|
||||
}
|
||||
}
|
||||
|
||||
func getLocalLogOBD(ctx context.Context, r *http.Request) madmin.ServerLogOBDInfo {
|
||||
addr := r.Host
|
||||
if globalIsDistErasure {
|
||||
addr = GetLocalPeer(globalEndpoints)
|
||||
}
|
||||
|
||||
log := globalConsoleSys.Content()
|
||||
return madmin.ServerLogOBDInfo{
|
||||
Addr: addr,
|
||||
Entries: log,
|
||||
}
|
||||
}
|
||||
|
||||
func getLocalProcOBD(ctx context.Context, r *http.Request) madmin.ServerProcOBDInfo {
|
||||
addr := r.Host
|
||||
if globalIsDistErasure {
|
||||
|
||||
Reference in New Issue
Block a user