Add logging to CLI

This commit is contained in:
2022-06-18 05:56:58 +03:00
parent af76973273
commit bdcf5aa366
5 changed files with 32 additions and 7 deletions

View File

@@ -1,6 +1,10 @@
import pathlib
import urllib.parse
import loguru
logger = loguru.logger.bind(name="traps-logger")
def filename_from_url(url: str) -> str:
path = urllib.parse.urlparse(url).path