Disable verbose logging
- Disable log console output in file to prevent logs from being printed to the console.
This commit is contained in:
@@ -114,7 +114,7 @@ export const AddRegionalAgentDialog: React.FC<AddRegionalAgentDialogProps> = ({
|
||||
textarea.setSelectionRange(0, 99999); // For mobile devices
|
||||
}
|
||||
} catch (selectError) {
|
||||
console.error('Failed to select text:', selectError);
|
||||
// console.error('Failed to select text:', selectError);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -64,18 +64,18 @@ sudo -E bash ./server-docker-agent.sh`;
|
||||
const handleCopyOneClickCommand = async (e: React.MouseEvent) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
console.log('Copy one-click command button clicked');
|
||||
// console.log('Copy one-click command button clicked');
|
||||
const command = getDockerOneClickCommand();
|
||||
console.log('Copying one-click command:', command);
|
||||
// console.log('Copying one-click command:', command);
|
||||
await copyToClipboard(command);
|
||||
};
|
||||
|
||||
const handleCopyDockerCommand = async (e: React.MouseEvent) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
console.log('Copy docker command button clicked');
|
||||
// console.log('Copy docker command button clicked');
|
||||
const command = getDirectDockerCommand();
|
||||
console.log('Copying docker command:', command);
|
||||
// console.log('Copying docker command:', command);
|
||||
await copyToClipboard(command);
|
||||
};
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@ export const useServiceData = (serviceId: string | undefined, startDate: Date, e
|
||||
} else {
|
||||
// Fetch regional agent specific data
|
||||
const [regionName, agentId] = currentAgent.split("|");
|
||||
console.log(`Fetching regional agent data for region: ${regionName}, agent: ${agentId} from ${service.type} collection`);
|
||||
// console.log(`Fetching regional agent data for region: ${regionName}, agent: ${agentId} from ${service.type} collection`);
|
||||
history = await uptimeService.getUptimeHistoryByRegionalAgent(serviceId, limit, start, end, service.type, regionName, agentId);
|
||||
// console.log(`Retrieved ${history.length} regional monitoring records`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user