Skip to content

Commit fe1c470

Browse files
committed
invert conditional
1 parent 6633bee commit fe1c470

File tree

1 file changed

+3
-3
lines changed
  • src/python/pants/backend/python/util_rules

1 file changed

+3
-3
lines changed

src/python/pants/backend/python/util_rules/pex_cli.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,10 @@ async def setup_pex_cli_process(
211211
def maybe_log_pex_stderr(stderr: bytes, pex_verbosity: int) -> None:
212212
"""Forward Pex's stderr to a Pants logger if conditions are met."""
213213
log_output = stderr.decode()
214-
if log_output and pex_verbosity > 0:
215-
logger.info("%s", log_output)
216-
elif log_output and "PEXWarning:" in log_output:
214+
if log_output and "PEXWarning:" in log_output:
217215
logger.warning("%s", log_output)
216+
elif log_output and pex_verbosity > 0:
217+
logger.info("%s", log_output)
218218

219219

220220
def rules():

0 commit comments

Comments
 (0)