diff --git a/dist/index.js b/dist/index.js index 0ca143a8..522b5943 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/dist/index.js.map b/dist/index.js.map index c1260768..164de174 100644 Binary files a/dist/index.js.map and b/dist/index.js.map differ diff --git a/src/model/cloud-runner/providers/k8s/index.ts b/src/model/cloud-runner/providers/k8s/index.ts index 168aa505..ce0f8152 100644 --- a/src/model/cloud-runner/providers/k8s/index.ts +++ b/src/model/cloud-runner/providers/k8s/index.ts @@ -61,6 +61,9 @@ class Kubernetes implements ProviderInterface { } const url = `http://${ip}/api/log`; RemoteClientLogger.log(`Pushing logs to ${url}`); + + // replace newlines with escaped newlines + logs = logs.replace(/\n/g, '\\n'); const response = await CloudRunnerSystem.Run(`curl -X POST -d "${logs}" ${url}`, false, true); RemoteClientLogger.log(`Pushed logs to ${url} ${response}`); }