diff --git a/fdroidserver/deploy.py b/fdroidserver/deploy.py index 87f4bb4c..42a7c509 100644 --- a/fdroidserver/deploy.py +++ b/fdroidserver/deploy.py @@ -16,6 +16,7 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . +from math import log import sys import glob import hashlib @@ -721,10 +722,10 @@ def upload_to_servergitmirror(mirror_config: Dict[str, str], ssh_cmd: str, progress: git.RemoteProgress) -> None: # Test - print(f"mirror_config: {mirror_config}") + logging.info(f"mirror_config: {mirror_config}") # List all files in the git repo - print("files:") - print(local_repo.git.ls_files()) + logging.info("files:") + logging.info(local_repo.git.ls_files()) index_only = mirror_config.get('index_only', False) @@ -751,7 +752,7 @@ def upload_to_servergitmirror(mirror_config: Dict[str, str], local_repo.create_remote(name, remote_url) logging.info('Mirroring to: ' + remote_url) - print("git status:", local_repo.git.status()) + logging.info("git status:", local_repo.git.status()) if index_only: # test logging.debug('Adding index files to git mirror') @@ -765,9 +766,9 @@ def upload_to_servergitmirror(mirror_config: Dict[str, str], local_repo.index.commit("fdroidserver git-mirror") # Test - print(f"In index-only: {index_only} mode") - print(local_repo.git.status()) - print(local_repo.head.log()) + logging.info(f"In index-only: {index_only} mode") + logging.info(local_repo.git.status()) + logging.info(local_repo.head.log()) # only deploy to GitLab Artifacts if too big for GitLab Pages if common.get_dir_size(fdroid_dir) <= common.GITLAB_COM_PAGES_MAX_SIZE: