Skip to content

Commit fe100cb

Browse files
update: fix logger reference in DefaultCmabClient initialization and add __init__.py for cmab module
1 parent 92a3258 commit fe100cb

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

optimizely/cmab/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright 2025, Optimizely
2+
# Licensed under the Apache License, Version 2.0 (the "License");
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
#
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
#
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.

optimizely/optimizely.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def __init__(
179179
# Initialize CMAB components
180180
self.cmab_client = DefaultCmabClient(
181181
retry_config=CmabRetryConfig(),
182-
logger=logger
182+
logger=self.logger
183183
)
184184
self.cmab_cache: LRUCache[str, CmabCacheValue] = LRUCache(DEFAULT_CMAB_CACHE_SIZE, DEFAULT_CMAB_CACHE_TIMEOUT)
185185
self.cmab_service = DefaultCmabService(

0 commit comments

Comments
 (0)