diff options
Diffstat (limited to 'unbiased/unbiasedObjects.py')
-rw-r--r-- | unbiased/unbiasedObjects.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/unbiased/unbiasedObjects.py b/unbiased/unbiasedObjects.py index 3affbe6..9372d3a 100644 --- a/unbiased/unbiasedObjects.py +++ b/unbiased/unbiasedObjects.py @@ -1,3 +1,7 @@ +import logging
+
+logger = logging.getLogger('unbiased')
+
class Article():
title=''
url=''
@@ -86,5 +90,5 @@ class NewsSource(): elif level==3:
self.h3Arr.append(article)
else:
- print("Error: invalid level in NewsSource.addArtlce: ", level)
+ logger.error("Invalid level in NewsSource.addArtlce: " + level)
|