Skip to content

Commit

Permalink
GrouperAPI: Add log keyword option #57
Browse files Browse the repository at this point in the history
import log_stdout
  • Loading branch information
astrochun committed Sep 28, 2020
1 parent 6bd168d commit 4f84a6e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion requiam/grouper_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
from .commons import figshare_stem
from .grouper_query import figshare_group

from .logger import log_stdout


class GrouperAPI:
"""
Expand Down Expand Up @@ -75,7 +77,12 @@ class GrouperAPI:
"""

def __init__(self, grouper_host, grouper_base_path, grouper_user,
grouper_password, grouper_production=False):
grouper_password, grouper_production=False, log=None):

if isinstance(log, type(None)):
self.log = log_stdout()
else:
self.log = log

self.grouper_host = grouper_host
self.grouper_base_dn = grouper_base_path
Expand Down

0 comments on commit 4f84a6e

Please sign in to comment.