Skip to content

Conversation

@alexmojaki
Copy link
Contributor

@alexmojaki alexmojaki commented Jul 2, 2022

Fixes #1843

@alexmojaki alexmojaki requested a review from a team as a code owner July 2, 2022 18:50
@alexmojaki alexmojaki requested a review from skshetry July 2, 2022 18:50

refspec_list = [f"{exp_ref}:{exp_ref}" for exp_ref in refs]
logger.debug(f"git push experiment '{refs}' -> '{git_remote}'")
logger.debug("git push experiment %r -> '%s'", refspec_list, git_remote)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here I've changed refs to refspec_list to match pull.py just above.


def _log_missing(self, status: "CompareStatusResult"):
if status.missing:
if status.missing and logger.isEnabledFor(logging.WARNING):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm, could you explain the reasoning behind this change, please? Seems unrelated to the rest.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a logger.warning in the block, and the costly part of the message formatting can't simply be converted to %s.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexmojaki That seems unnecessary though. I'll adjust it back for now

Copy link
Contributor

@efiop efiop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@efiop efiop merged commit c59f935 into treeverse:main Jul 4, 2022
@efiop efiop added refactoring Factoring and re-factoring skip-changelog Skips changelog labels Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Factoring and re-factoring skip-changelog Skips changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

logger: use logging format interpolation

2 participants