Skip to content

Commit

Permalink
Fix crash when cache not enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
asllop committed Jan 29, 2024
1 parent 012c039 commit 826d622
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/newrelic_logging/salesforce.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ class DataCache:
cached_events = {}
cached_logs = {}

def __init__(self) -> None:
pass

def __init__(self, redis, redis_expire) -> None:
def __init__(self, redis = None, redis_expire = None) -> None:
self.redis_expire = redis_expire
self.redis = redis

Expand Down

0 comments on commit 826d622

Please sign in to comment.