Explorar el Código

Change couple of log entries from info to warning

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
Pierre-Yves Chibon hace 5 años
padre
commit
d6adbab306
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      pagure/lib/tasks_mirror.py

+ 2 - 2
pagure/lib/tasks_mirror.py

@@ -203,7 +203,7 @@ def mirror_project(self, session, username, namespace, name):
     repofolder = pagure_config["GIT_FOLDER"]
     repopath = os.path.join(repofolder, project.path)
     if not os.path.exists(repopath):
-        _log.info("Git folder not found at: %s, bailing", repopath)
+        _log.warning("Git folder not found at: %s, bailing", repopath)
         return
 
     ssh_folder = pagure_config["MIRROR_SSHKEYS_FOLDER"]
@@ -211,7 +211,7 @@ def mirror_project(self, session, username, namespace, name):
     private_key_file = os.path.join(ssh_folder, public_key_name)
 
     if not os.path.exists(private_key_file):
-        _log.info("No %s key found, bailing", private_key_file)
+        _log.warning("No %s key found, bailing", private_key_file)
         project.mirror_hook.last_log = "Private key not found on disk, bailing"
         session.add(project.mirror_hook)
         session.commit()