From 5a7c7f35f7d526a8c0ed49da12e4efc5e9dd6582 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 10 Jul 2018 21:30:38 +0200 Subject: Remove `print` from libmat, and use the `logging` module instead This should close #28 --- libmat2/torrent.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libmat2/torrent.py') diff --git a/libmat2/torrent.py b/libmat2/torrent.py index ca7715a..90f83f8 100644 --- a/libmat2/torrent.py +++ b/libmat2/torrent.py @@ -3,6 +3,8 @@ from typing import Union, Tuple, Dict from . import abstract +logging.basicConfig(level=logging.ERROR) + class TorrentParser(abstract.AbstractParser): mimetypes = {'application/x-bittorrent', } -- cgit v1.3