Skip to content

Commit 2371cb5

Browse files
authored
Merge pull request #75 from jihyungSong/master
Remove logger
2 parents de18ebb + 62f6057 commit 2371cb5

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/spaceone/core/service/service.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
from spaceone.core.base import CoreObject
1616
from spaceone.core.error import *
1717
from spaceone.core.locator import Locator
18-
from spaceone.core.transaction import Transaction, get_transaction, create_transaction, delete_transaction, \
19-
LOCAL_STORAGE
18+
from spaceone.core.transaction import Transaction, get_transaction, create_transaction, delete_transaction
2019

2120
from opentelemetry import trace
2221

@@ -123,9 +122,9 @@ def _pipeline(func, self, params, append_meta):
123122
response_or_iterator = func(self, params)
124123

125124
# debug code for memory leak
126-
local_storage = LOCAL_STORAGE.__dict__
127-
_LOGGER.info(
128-
f'[BaseService] {get_transaction()} / number of items in local storage: {len(local_storage)} / items => {local_storage}')
125+
# local_storage = LOCAL_STORAGE.__dict__
126+
# _LOGGER.info(
127+
# f'[BaseService] {get_transaction()} / number of items in local storage: {len(local_storage)} / items => {local_storage}')
129128

130129
return response_or_iterator
131130

0 commit comments

Comments
 (0)