serge-community / serge

Continuous localization platform
https://serge.io/
Other
236 stars 52 forks source link

Serge always prints debug output on CI. #121

Open zhukic opened 5 years ago

zhukic commented 5 years ago

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.

iafan commented 5 years ago

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...