Skip to content

Commit

Permalink
fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandroroiz committed Aug 27, 2024
1 parent 943ca06 commit 70fbe3c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions confidant/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from confidant import settings


def init_logging():
logging.getLogger(__name__).info('Initializing logging')
if not settings.get('DEBUG'):
Expand Down
4 changes: 3 additions & 1 deletion confidant/routes/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
logger = logging.getLogger(__name__)
blueprint = blueprints.Blueprint('credentials', __name__)

logger.warning('Will load logging module: {}'.format(settings.get('LOGGING_MODULE')))
logger.warning(
'Will load logging module: {}'.format(settings.get('LOGGING_MODULE'))
)

acl_module_check = misc.load_module(settings.ACL_MODULE)
logging_module = misc.load_module(settings.get('LOGGING_MODULE'))
Expand Down
8 changes: 6 additions & 2 deletions confidant/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,5 +693,9 @@ def get(name, default=None):
ACL_MODULE = str_env('ACL_MODULE', 'confidant.authnz.rbac:default_acl')

# Logging
INIT_LOGGING_MODULE = str_env('LOGGING_MODULE', 'confidant.logging:init_logging')
LOGGING_MODULE = str_env('LOGGING_MODULE', 'confidant.logging:logging_abstraction')
INIT_LOGGING_MODULE = str_env(
'LOGGING_MODULE', 'confidant.logging:init_logging'
)
LOGGING_MODULE = str_env(
'LOGGING_MODULE', 'confidant.logging:logging_abstraction'
)

0 comments on commit 70fbe3c

Please sign in to comment.