From 67d47ed280968f410b364052d4812284fc4471fc Mon Sep 17 00:00:00 2001 From: Chris Veilleux Date: Mon, 3 Jun 2019 22:00:07 -0500 Subject: [PATCH] added log message --- shared/selene/util/github.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shared/selene/util/github.py b/shared/selene/util/github.py index 59c0ce90..2eb19cf2 100644 --- a/shared/selene/util/github.py +++ b/shared/selene/util/github.py @@ -1,12 +1,16 @@ """ Logic that uses the Github REST API to extract repository-related metadata """ +from logging import getLogger from urllib.request import urlopen from github import Github +_log = getLogger(__package__) + def log_into_github(user_name: str, user_password: str) -> Github: + _log.info('logging into GitHub as "{}"'.format(user_name)) return Github(user_name, user_password)