Skip to content

Commit

Permalink
Disabled RSA debug by default
Browse files Browse the repository at this point in the history
  • Loading branch information
tcalmant committed Jun 27, 2018
1 parent 772e4e2 commit 9f69cd5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pelix/rsa/remoteserviceadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
# output of RSA events, set the property 'pelix.rsa.remoteserviceadmin.debug
# to some string other than 'true' (the default)
DEBUG_PROPERTY = "pelix.rsa.remoteserviceadmin.debug"
DEBUG_PROPERTY_DEFAULT = "true"
DEBUG_PROPERTY_DEFAULT = "false"

# ------------------------------------------------------------------------------

Expand All @@ -140,6 +140,7 @@ def start(self, context):
debug_str = self._context.get_property(DEBUG_PROPERTY)
if not debug_str:
debug_str = DEBUG_PROPERTY_DEFAULT

if strtobool(debug_str):
self._debug_reg = self._context.register_service(
SERVICE_RSA_EVENT_LISTENER,
Expand Down Expand Up @@ -1403,10 +1404,13 @@ def close(self):


# ------------------------------------------------------------------------------
# ----------------------------------------------------------------------------------
# Implementation of RemoteServiceAdminListener that supports debugging by printing
# out information about the RemoteServiceAdminEvents.


class DebugRemoteServiceAdminListener(RemoteServiceAdminListener):
"""
Implementation of RemoteServiceAdminListener that supports debugging by
printing out information about the RemoteServiceAdminEvents.
"""

EXPORT_MASK = (
RemoteServiceAdminEvent.EXPORT_ERROR
Expand Down

0 comments on commit 9f69cd5

Please sign in to comment.