diff --git a/dist/index.js b/dist/index.js index 522b5943..43834c0b 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 164de174..e977c4f5 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 ce0f8152..39ffdb0e 100644 --- a/src/model/cloud-runner/providers/k8s/index.ts +++ b/src/model/cloud-runner/providers/k8s/index.ts @@ -62,8 +62,8 @@ 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'); + // logs to base64 + logs = Buffer.from(logs).toString('base64'); const response = await CloudRunnerSystem.Run(`curl -X POST -d "${logs}" ${url}`, false, true); RemoteClientLogger.log(`Pushed logs to ${url} ${response}`); }