]> git.phdru.name Git - bookmarks_db.git/commitdiff
Chore(check_urls): Improve output
authorOleg Broytman <phd@phdru.name>
Tue, 20 Aug 2024 17:27:08 +0000 (20:27 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 7 Sep 2024 10:59:02 +0000 (13:59 +0300)
check_urls.py
check_urls_db.py

index 2111b3fa4b06b11ea4be30be63ed4ace9a1953dc..6e0ada87a1d90efa4a26ec1796bda2d4f4db95b2 100755 (executable)
@@ -50,6 +50,7 @@ def run():
         bookmark.parent = None
         bookmarks.append(bookmark)
 
+        log("Checking %s" % url)
         robot.check_bookmark(bookmark)
 
     robot.stop()
index 5324a47fc71e124f7cd5b2ea5db2951a871d4dba..b685a69202c556edbabc8d55deda766e9869a286 100755 (executable)
@@ -59,14 +59,14 @@ def run():
     from m_lib.flog import makelog, openlog
     if only_errors:
         log = openlog("check.log")
-        log("chk_urls restarted for errors")
+        log("chk_urls_db restarted for errors")
         if report_stats:
-            print("chk_urls restarted for errors")
+            print("chk_urls_db restarted for errors")
     else:
         log = makelog("check.log")
         log("check_urls_db started")
         if report_stats:
-            print("   check_urls_db: normal start")
+            print("check_urls_db started")
     log.outfile.reconfigure(encoding='utf-8')
 
     from storage import storage