serge icon indicating copy to clipboard operation
serge copied to clipboard

Serge always prints debug output on CI.

Open zhukic opened this issue 4 years ago • 1 comments

Hi. I use Serge on our Bitbucket Pipelines CI server and I noticed that Serge prints a lot of debugging information (about 478K lines) when running serge localize config.serge but there is no --debug option. Locally on my machine, with the same environment, everything works fine. After hours of investigation, I found out that Serge probably uses CI environment variable which is predefined in Bitbucket Pipelines CI.

Currently, it can be fixed via unset CI during work with Serge.

Thanks.

zhukic avatar Aug 26 '19 14:08 zhukic

This was originally done on purpose, see https://github.com/evernote/serge/commit/ab0ec0e932a341f24607ef09e51096665b00294f

However, when implementing this, I didn't think about interfering about production use of Serge on a CI server where the same environment variable is set. So we need to distinguish these two use cases somehow...

iafan avatar Sep 03 '19 23:09 iafan