feat: add debug logging for resource name and command in Docker resource type determination

This commit is contained in:
Mauricio Siu
2025-09-05 02:11:46 -06:00
parent 3891798b17
commit c6509efa65
+3
View File
@@ -253,6 +253,7 @@ export const getDockerResourceType = async (
resourceName: string, resourceName: string,
serverId?: string, serverId?: string,
) => { ) => {
console.log("resourceName", resourceName);
let result = ""; let result = "";
const command = ` const command = `
RESOURCE_NAME="${resourceName}" RESOURCE_NAME="${resourceName}"
@@ -270,6 +271,8 @@ export const getDockerResourceType = async (
exit 0 exit 0
`; `;
console.log("command", command);
if (serverId) { if (serverId) {
const { stdout } = await execAsyncRemote(serverId, command); const { stdout } = await execAsyncRemote(serverId, command);
result = stdout.trim(); result = stdout.trim();