mirror of
https://github.com/OpenKMIP/PyKMIP.git
synced 2025-07-22 05:24:22 +02:00
Merge pull request #153 from OpenKMIP/feat/link-server-logs
Linking the loggers for the different KmipServer components
This commit is contained in:
commit
2b67689057
@ -36,7 +36,8 @@ class CryptographyEngine(api.CryptographicEngine):
|
|||||||
"""
|
"""
|
||||||
Construct a CryptographyEngine.
|
Construct a CryptographyEngine.
|
||||||
"""
|
"""
|
||||||
self.logger = logging.getLogger(__name__)
|
self.logger = logging.getLogger('kmip.server.engine.cryptography')
|
||||||
|
|
||||||
self._symmetric_key_algorithms = {
|
self._symmetric_key_algorithms = {
|
||||||
enums.CryptographicAlgorithm.TRIPLE_DES: algorithms.TripleDES,
|
enums.CryptographicAlgorithm.TRIPLE_DES: algorithms.TripleDES,
|
||||||
enums.CryptographicAlgorithm.AES: algorithms.AES,
|
enums.CryptographicAlgorithm.AES: algorithms.AES,
|
||||||
|
@ -79,7 +79,7 @@ class KmipEngine(object):
|
|||||||
"""
|
"""
|
||||||
Create a KmipEngine.
|
Create a KmipEngine.
|
||||||
"""
|
"""
|
||||||
self._logger = logging.getLogger(__name__)
|
self._logger = logging.getLogger('kmip.server.engine')
|
||||||
|
|
||||||
self._cryptography_engine = engine.CryptographyEngine()
|
self._cryptography_engine = engine.CryptographyEngine()
|
||||||
|
|
||||||
|
@ -51,10 +51,9 @@ class KmipSession(threading.Thread):
|
|||||||
kwargs={}
|
kwargs={}
|
||||||
)
|
)
|
||||||
|
|
||||||
if name is None:
|
self._logger = logging.getLogger(
|
||||||
name = self.name
|
'kmip.server.session.{0}'.format(self.name)
|
||||||
|
)
|
||||||
self._logger = logging.getLogger('.'.join((__name__, name)))
|
|
||||||
|
|
||||||
self._engine = engine
|
self._engine = engine
|
||||||
self._connection = connection
|
self._connection = connection
|
||||||
|
Loading…
x
Reference in New Issue
Block a user