mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 17:52:59 -07:00
Mask device token and device id from API logs
This commit is contained in:
parent
40ecf56904
commit
44f74e3590
2 changed files with 11 additions and 0 deletions
|
@ -686,6 +686,10 @@ General optional parameters:
|
|||
def _api_run(self, *args, **kwargs):
|
||||
""" handles the stuff from the handler """
|
||||
|
||||
# Make sure the device ID is not shown in the logs
|
||||
if self._api_cmd == 'register_device' and kwargs.get('device_id'):
|
||||
logger._BLACKLIST_WORDS.add(kwargs['device_id'])
|
||||
|
||||
result = {}
|
||||
logger.api_debug('Tautulli APIv2 :: API called with kwargs: %s' % kwargs)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue