mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: remove unnecessary error logging in GPU setup functions
This commit is contained in:
@@ -35,7 +35,6 @@ export async function checkGPUStatus(serverId?: string): Promise<GPUInfo> {
|
|||||||
...cudaInfo,
|
...cudaInfo,
|
||||||
};
|
};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error in checkGPUStatus:", error);
|
|
||||||
return {
|
return {
|
||||||
driverInstalled: false,
|
driverInstalled: false,
|
||||||
driverVersion: undefined,
|
driverVersion: undefined,
|
||||||
@@ -317,7 +316,6 @@ const setupLocalServer = async (daemonConfig: any) => {
|
|||||||
try {
|
try {
|
||||||
await execAsync(setupCommands);
|
await execAsync(setupCommands);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Setup failed:", error);
|
|
||||||
throw new Error(
|
throw new Error(
|
||||||
"Failed to configure GPU support. Please ensure you have sudo privileges and try again.",
|
"Failed to configure GPU support. Please ensure you have sudo privileges and try again.",
|
||||||
);
|
);
|
||||||
@@ -344,11 +342,10 @@ const verifySetup = async (nodeId: string, serverId?: string) => {
|
|||||||
"cat /etc/nvidia-container-runtime/config.toml",
|
"cat /etc/nvidia-container-runtime/config.toml",
|
||||||
].join(" && ");
|
].join(" && ");
|
||||||
|
|
||||||
const { stdout: diagnostics } = serverId
|
await (serverId
|
||||||
? await execAsyncRemote(serverId, diagnosticCommands)
|
? execAsyncRemote(serverId, diagnosticCommands)
|
||||||
: await execAsync(diagnosticCommands);
|
: execAsync(diagnosticCommands));
|
||||||
|
|
||||||
console.error("Diagnostic Information:", diagnostics);
|
|
||||||
throw new Error("GPU support not detected in swarm after setup");
|
throw new Error("GPU support not detected in swarm after setup");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user