Merge pull request #10096 from overleaf/ii-stderr-exceeds-max-size-error

Adjust string output stream settings

GitOrigin-RevId: 02b48e17ad52ea9af44ce330bc8b6bc80c4d4251
This commit is contained in:
ilkin-overleaf 2022-10-21 12:46:01 +03:00 committed by Copybot
parent 905c9c6ec1
commit b3f98503b7

View file

@ -415,7 +415,7 @@ const DockerRunner = {
logger.debug({ containerId }, 'attached to container') logger.debug({ containerId }, 'attached to container')
const MAX_OUTPUT = 1024 * 1024 // limit output to 1MB const MAX_OUTPUT = 1024 * 1024 * 2 // limit output to 2MB
function createStringOutputStream(name) { function createStringOutputStream(name) {
return { return {
data: '', data: '',
@ -427,7 +427,7 @@ const DockerRunner = {
if (this.data.length < MAX_OUTPUT) { if (this.data.length < MAX_OUTPUT) {
this.data += data this.data += data
} else { } else {
logger.error( logger.info(
{ {
containerId, containerId,
length: this.data.length, length: this.data.length,