Skip to content

Commit 638f2dc

Browse files
committed
change log levels to make intentional errors more obvious
1 parent bf8f833 commit 638f2dc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

conda_forge_tick/git_utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ def clone_fork_and_branch(
488488
raise GitCliError(
489489
f"Could not clone {origin_url} - does the remote exist?"
490490
)
491-
logger.debug(
491+
logger.info(
492492
f"Cloning {origin_url} into {target_dir} was not successful - "
493493
f"trying to reset hard since the directory already exists. This will fail if the target directory is "
494494
f"not a git repository."
@@ -498,7 +498,7 @@ def clone_fork_and_branch(
498498
try:
499499
self.add_remote(target_dir, "upstream", upstream_url)
500500
except GitCliError as e:
501-
logger.debug(
501+
logger.info(
502502
"It looks like remote 'upstream' already exists. Ignoring.", exc_info=e
503503
)
504504
pass
@@ -511,7 +511,7 @@ def clone_fork_and_branch(
511511
try:
512512
self.checkout_branch(target_dir, f"upstream/{base_branch}", track=True)
513513
except GitCliError as e:
514-
logger.debug(
514+
logger.info(
515515
"Could not check out with git checkout --track. Trying git checkout -b.",
516516
exc_info=e,
517517
)
@@ -527,12 +527,12 @@ def clone_fork_and_branch(
527527
self.reset_hard(target_dir, f"upstream/{base_branch}")
528528

529529
try:
530-
logger.debug(
530+
logger.info(
531531
f"Trying to checkout branch {new_branch} without creating a new branch"
532532
)
533533
self.checkout_branch(target_dir, new_branch)
534534
except GitCliError:
535-
logger.debug(
535+
logger.info(
536536
f"It seems branch {new_branch} does not exist. Creating it.",
537537
)
538538
self.checkout_new_branch(target_dir, new_branch, start_point=base_branch)

0 commit comments

Comments
 (0)