mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: removed console logs and error handling
This commit is contained in:
@@ -701,11 +701,8 @@ export const settingsRouter = createTRPCRouter({
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const status = await checkGPUStatus(input.serverId || "");
|
return await checkGPUStatus(input.serverId || "");
|
||||||
console.log("GPU Status Check Result:", status);
|
|
||||||
return status;
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("GPU Status Check Error:", error);
|
|
||||||
throw new Error("Failed to check GPU status");
|
throw new Error("Failed to check GPU status");
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -225,15 +225,8 @@ export async function setupGPUSupport(serverId?: string): Promise<void> {
|
|||||||
|
|
||||||
// 7. Final verification
|
// 7. Final verification
|
||||||
await sleep(5000);
|
await sleep(5000);
|
||||||
const finalStatus = await verifySetup(nodeId, serverId);
|
await verifySetup(nodeId, serverId);
|
||||||
|
|
||||||
console.log("GPU setup completed successfully:", {
|
|
||||||
availableGPUs: initialStatus.availableGPUs,
|
|
||||||
driverVersion: initialStatus.driverVersion,
|
|
||||||
nodeId,
|
|
||||||
});
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("GPU Setup Error:", error);
|
|
||||||
if (
|
if (
|
||||||
error instanceof Error &&
|
error instanceof Error &&
|
||||||
error.message.includes("password is required")
|
error.message.includes("password is required")
|
||||||
@@ -260,7 +253,6 @@ const validatePrerequisites = async (initialStatus: GPUInfo) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (initialStatus.swarmEnabled && initialStatus.runtimeConfigured) {
|
if (initialStatus.swarmEnabled && initialStatus.runtimeConfigured) {
|
||||||
console.log("GPU already configured, skipping setup");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user