also log debugging statements to file
This commit is contained in:
parent
d8a814dec2
commit
2e262c8315
1 changed files with 2 additions and 0 deletions
2
main.py
2
main.py
|
@ -15,6 +15,7 @@ import github_stars
|
|||
logger = logging.getLogger()
|
||||
logger.handlers = []
|
||||
formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')
|
||||
logger.setLevel(logging.DEBUG)
|
||||
|
||||
with open("config.yaml", 'r') as stream:
|
||||
try:
|
||||
|
@ -105,6 +106,7 @@ async def handle_feed(session, wall, sitetitle, site):
|
|||
else:
|
||||
logger.debug("no latest_article: " + sitetitle)
|
||||
if f.entries:
|
||||
logger.debug("first fetch, so just checking for the latest article:" + sitetitle)
|
||||
sites[sitetitle]["latest_article"] = f.entries[0].title
|
||||
|
||||
|
||||
|
|
Reference in a new issue