Skip to content

Commit

Permalink
Delta: 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 d9d49fa commit 6bd168d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions requiam/delta.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import requests
import time

from .logger import log_stdout


class Delta(object):
"""
Expand All @@ -21,8 +23,12 @@ class Delta(object):
"""

def __init__(self, ldap_members, grouper_query_instance, batch_size,
batch_timeout, batch_delay, sync_max, log):
self.log = log
batch_timeout, batch_delay, sync_max, log=None):

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

self.log.debug('entered')

Expand Down

0 comments on commit 6bd168d

Please sign in to comment.