Avoid logging MD5 password for BGP add neighbor

Change-Id: I12e9b23749e40f56e947377409ff2882adc25205
Story: 2009779
Task: 44260
(cherry picked from commit 974ccdabd2)
This commit is contained in:
elajkat 2022-01-11 17:50:39 +01:00 committed by Lajos Katona
parent 83be45d96f
commit f172a28d2b
1 changed files with 4 additions and 1 deletions

View File

@ -193,7 +193,10 @@ def call(symbol, **kwargs):
"""Calls/executes BGPS public API identified by given symbol and passes
given kwargs as param.
"""
LOG.info("API method %s called with args: %s", symbol, str(kwargs))
LOG.info(
"API method %s called with args: %s",
symbol,
str(dict(kwargs.items() - {'password': kwargs['password']}.items())))
# TODO(PH, JK) improve the way api function modules are loaded
from . import all # noqa