fix accidental formatting
This commit is contained in:
parent
fdca28c2af
commit
81be2d6f96
|
|
@ -26,8 +26,9 @@ const args = require("yargs")
|
||||||
// CONTAINER_SANDBOX_MOUNT_POINT C:\C\0eac9a8da76f6d7119c5d9f86c8b3106d67dbbf01dbeb22fdc0192476b7e31cb\
|
// CONTAINER_SANDBOX_MOUNT_POINT C:\C\0eac9a8da76f6d7119c5d9f86c8b3106d67dbbf01dbeb22fdc0192476b7e31cb\
|
||||||
// path is injected as C:\config\driver-config-file.yaml
|
// path is injected as C:\config\driver-config-file.yaml
|
||||||
if (process.env.CONTAINER_SANDBOX_MOUNT_POINT) {
|
if (process.env.CONTAINER_SANDBOX_MOUNT_POINT) {
|
||||||
path = `${process.env.CONTAINER_SANDBOX_MOUNT_POINT
|
path = `${
|
||||||
}${stripWindowsDriveLetter(path)}`;
|
process.env.CONTAINER_SANDBOX_MOUNT_POINT
|
||||||
|
}${stripWindowsDriveLetter(path)}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
@ -203,7 +204,7 @@ async function requestHandlerProxy(call, callback, serviceMethodName) {
|
||||||
throw new GrpcError(
|
throw new GrpcError(
|
||||||
grpc.status.ABORTED,
|
grpc.status.ABORTED,
|
||||||
"operation locked due to in progress operation(s): " +
|
"operation locked due to in progress operation(s): " +
|
||||||
JSON.stringify(lockKeys)
|
JSON.stringify(lockKeys)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -502,7 +503,8 @@ if (process.env.LOG_MEMORY_USAGE == "1") {
|
||||||
const used = process.memoryUsage();
|
const used = process.memoryUsage();
|
||||||
for (let key in used) {
|
for (let key in used) {
|
||||||
console.log(
|
console.log(
|
||||||
`[${new Date()}] Memory Usage: ${key} ${Math.round((used[key] / 1024 / 1024) * 100) / 100
|
`[${new Date()}] Memory Usage: ${key} ${
|
||||||
|
Math.round((used[key] / 1024 / 1024) * 100) / 100
|
||||||
} MB`
|
} MB`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -516,7 +518,7 @@ if (process.env.MANUAL_GC == "1") {
|
||||||
if (global.gc) {
|
if (global.gc) {
|
||||||
global.gc();
|
global.gc();
|
||||||
}
|
}
|
||||||
} catch (e) { }
|
} catch (e) {}
|
||||||
}, process.env.MANUAL_GC_INTERVAL || 60000);
|
}, process.env.MANUAL_GC_INTERVAL || 60000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -525,7 +527,7 @@ if (process.env.LOG_GRPC_SESSIONS == "1") {
|
||||||
console.log("dumping sessions");
|
console.log("dumping sessions");
|
||||||
try {
|
try {
|
||||||
console.log(csiServer.sessions);
|
console.log(csiServer.sessions);
|
||||||
} catch (e) { }
|
} catch (e) {}
|
||||||
}, 5000);
|
}, 5000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue