Skip to content

Commit 0192084

Browse files
authored
Remove live logs support from UI (#3451)
1 parent 78aceb2 commit 0192084

File tree

2 files changed

+3
-36
lines changed

2 files changed

+3
-36
lines changed

web-app/src/screens/Console/Support/CallHome.tsx

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ const CallHome = () => {
4545
const [showConfirmation, setShowConfirmation] = useState<boolean>(false);
4646
const [diagEnabled, setDiagEnabled] = useState<boolean>(false);
4747
const [oDiagEnabled, setODiagEnabled] = useState<boolean>(false);
48-
const [oLogsEnabled, setOLogsEnabled] = useState<boolean>(false);
49-
const [logsEnabled, setLogsEnabled] = useState<boolean>(false);
5048
const [disableMode, setDisableMode] = useState<boolean>(false);
5149

5250
const clusterRegistered = registeredCluster();
@@ -59,10 +57,8 @@ const CallHome = () => {
5957
setLoading(false);
6058

6159
setDiagEnabled(!!res.diagnosticsStatus);
62-
setLogsEnabled(!!res.logsStatus);
6360

6461
setODiagEnabled(!!res.diagnosticsStatus);
65-
setOLogsEnabled(!!res.logsStatus);
6662
})
6763
.catch((err: ErrorResponseHandler) => {
6864
setLoading(false);
@@ -94,10 +90,7 @@ const CallHome = () => {
9490

9591
let mainVariant: "regular" | "callAction" = "regular";
9692

97-
if (
98-
clusterRegistered &&
99-
(diagEnabled !== oDiagEnabled || logsEnabled !== oLogsEnabled)
100-
) {
93+
if (clusterRegistered && diagEnabled !== oDiagEnabled) {
10194
mainVariant = "callAction";
10295
}
10396

@@ -112,7 +105,6 @@ const CallHome = () => {
112105
<CallHomeConfirmation
113106
onClose={callHomeClose}
114107
open={showConfirmation}
115-
logsStatus={logsEnabled}
116108
diagStatus={diagEnabled}
117109
disable={disableMode}
118110
/>
@@ -178,20 +170,6 @@ const CallHome = () => {
178170
"Daily Health Report enables you to proactively identify potential issues in your deployment before they escalate."
179171
}
180172
/>
181-
<Switch
182-
value="enableLogs"
183-
id="enableLogs"
184-
name="enableLogs"
185-
checked={logsEnabled}
186-
onChange={(event: React.ChangeEvent<HTMLInputElement>) => {
187-
setLogsEnabled(event.target.checked);
188-
}}
189-
label={"Live Error Logs"}
190-
disabled={!clusterRegistered}
191-
description={
192-
"Live Error Logs will enable MinIO's support team and automatic diagnostics system to catch failures early."
193-
}
194-
/>
195173
<Box
196174
sx={{
197175
display: "flex",
@@ -201,7 +179,7 @@ const CallHome = () => {
201179
gap: "0px 10px",
202180
}}
203181
>
204-
{(oDiagEnabled || oLogsEnabled) && (
182+
{oDiagEnabled && (
205183
<Button
206184
id={"callhome-action"}
207185
variant={"secondary"}

web-app/src/screens/Console/Support/CallHomeConfirmation.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@ interface ICallHomeConfirmation {
2828
onClose: (refresh: boolean) => any;
2929
open: boolean;
3030
diagStatus: boolean;
31-
logsStatus: boolean;
3231
disable?: boolean;
3332
}
3433

3534
const CallHomeConfirmation = ({
3635
onClose,
3736
diagStatus,
38-
logsStatus,
3937
open,
4038
disable = false,
4139
}: ICallHomeConfirmation) => {
@@ -48,7 +46,7 @@ const CallHomeConfirmation = ({
4846
api
4947
.invoke("PUT", `/api/v1/support/callhome`, {
5048
diagState: disable ? false : diagStatus,
51-
logsState: disable ? false : logsStatus,
49+
logsState: false,
5250
})
5351
.then((res: ICallHomeResponse) => {
5452
dispatch(setSnackBarMessage("Configuration saved successfully"));
@@ -140,15 +138,6 @@ const CallHomeConfirmation = ({
140138
Diagnostics Information to SUBNET
141139
</span>
142140
</Grid>
143-
<Grid item sx={{ display: "flex", alignItems: "center", gap: 10 }}>
144-
<CircleIcon
145-
style={{ fill: logsStatus ? "#4CCB92" : "#C83B51", width: 20 }}
146-
/>
147-
<span>
148-
<strong>{logsStatus ? "Enable" : "Disable"}</strong> - Send Logs
149-
Information to SUBNET
150-
</span>
151-
</Grid>
152141
</Grid>
153142
<Grid item xs={12} sx={{ margin: "15px 0" }}>
154143
Please Acknowledge that the information provided will only be

0 commit comments

Comments
 (0)