mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 15:14:31 -04:00
cleanup console logging messages
This commit is contained in:
parent
1ea695d7b7
commit
2cd11feaac
4 changed files with 25 additions and 9 deletions
8
index.py
8
index.py
|
@ -28,15 +28,15 @@ def write_links_index(out_dir, links):
|
|||
if not os.path.exists(out_dir):
|
||||
os.makedirs(out_dir)
|
||||
|
||||
print('[i] [{}] Updating {}{}{} links in archive index...'.format(
|
||||
write_json_links_index(out_dir, links)
|
||||
write_html_links_index(out_dir, links)
|
||||
|
||||
print('[√] [{}] Archive index is now up-to-date with {}{}{} links.'.format(
|
||||
datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
|
||||
ANSI['green'],
|
||||
len(links),
|
||||
ANSI['reset'],
|
||||
))
|
||||
|
||||
write_json_links_index(out_dir, links)
|
||||
write_html_links_index(out_dir, links)
|
||||
|
||||
def write_json_links_index(out_dir, links):
|
||||
"""write the json link index to a given path"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue