]> git.ipfire.org Git - ipfire.org.git/commitdiff
Make the file scan and mirror check less verbose
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 18 Aug 2019 17:53:22 +0000 (18:53 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 18 Aug 2019 17:53:22 +0000 (18:53 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/backend/mirrors.py
src/backend/releases.py

index 516b9d1de2e51f77ac8dd4d9d47951a9bf43dc17..6652207848d8bc0c23765064ead2878b4b10f8f1 100644 (file)
@@ -178,7 +178,7 @@ class Mirror(Object):
                return self.data.state
 
        def set_state(self, state):
-               logging.info("Setting state of %s to %s" % (self.hostname, state))
+               logging.debug("Setting state of %s to %s" % (self.hostname, state))
 
                if self.state == state:
                        return
@@ -198,7 +198,7 @@ class Mirror(Object):
 
        @tornado.gen.coroutine
        def check(self):
-               logging.info("Running check for mirror %s" % self.hostname)
+               logging.debug("Running check for mirror %s" % self.hostname)
 
                self.db.execute("UPDATE mirrors SET address = %s WHERE id = %s",
                        self.address, self.id)
@@ -267,7 +267,8 @@ class Mirror(Object):
                # Update state
                self.check_state(timestamp)
 
-               logging.info("Successfully updated timestamp from %s" % self.hostname)
+               logging.debug("Successfully updated timestamp from %s" % self.hostname)
+
                return True
 
        @tornado.gen.coroutine
@@ -300,7 +301,7 @@ class Mirror(Object):
                        self.db.execute("INSERT INTO mirror_files(mirror, filename) \
                                VALUES(%s, %s)", self.id, file)
 
-               logging.info("Successfully updated mirror filelist from %s" % self.hostname)
+               logging.debug("Successfully updated mirror filelist from %s" % self.hostname)
 
        @property
        def development(self):
index 59355eae2bad7ab8d515f3cfe19ff25434fb5efc..6b37e23cafde5ce26552698c6bbae0b9c885233c 100644 (file)
@@ -547,7 +547,7 @@ class Releases(Object):
        @tornado.gen.coroutine
        def scan_files(self, basepath="/pub/mirror"):
                for release in self:
-                       logging.info("Scanning %s..." % release)
+                       logging.debug("Scanning %s..." % release)
 
                        with self.db.transaction():
                                release.scan_files(basepath=basepath)