mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-21 04:10:37 +02:00
chore(deploy): convert print to logging for in-order output
This commit is contained in:
parent
5ff6cdd53b
commit
77c3f83fd7
@ -16,6 +16,7 @@
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user