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:
parent
8e532d5a60
commit
6961ee1fc0
@ -701,11 +701,8 @@ export const settingsRouter = createTRPCRouter({
|
||||
}
|
||||
|
||||
try {
|
||||
const status = await checkGPUStatus(input.serverId || "");
|
||||
console.log("GPU Status Check Result:", status);
|
||||
return status;
|
||||
return await checkGPUStatus(input.serverId || "");
|
||||
} catch (error) {
|
||||
console.error("GPU Status Check Error:", error);
|
||||
throw new Error("Failed to check GPU status");
|
||||
}
|
||||
}),
|
||||
|
@ -225,15 +225,8 @@ export async function setupGPUSupport(serverId?: string): Promise<void> {
|
||||
|
||||
// 7. Final verification
|
||||
await sleep(5000);
|
||||
const finalStatus = await verifySetup(nodeId, serverId);
|
||||
|
||||
console.log("GPU setup completed successfully:", {
|
||||
availableGPUs: initialStatus.availableGPUs,
|
||||
driverVersion: initialStatus.driverVersion,
|
||||
nodeId,
|
||||
});
|
||||
await verifySetup(nodeId, serverId);
|
||||
} catch (error) {
|
||||
console.error("GPU Setup Error:", error);
|
||||
if (
|
||||
error instanceof Error &&
|
||||
error.message.includes("password is required")
|
||||
@ -260,7 +253,6 @@ const validatePrerequisites = async (initialStatus: GPUInfo) => {
|
||||
}
|
||||
|
||||
if (initialStatus.swarmEnabled && initialStatus.runtimeConfigured) {
|
||||
console.log("GPU already configured, skipping setup");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user