mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 09:42:57 -07:00
Mask onesignal_id from API logs
This commit is contained in:
parent
36324d10dc
commit
8651bef9c1
1 changed files with 5 additions and 2 deletions
|
@ -689,8 +689,11 @@ General optional parameters:
|
||||||
""" handles the stuff from the handler """
|
""" handles the stuff from the handler """
|
||||||
|
|
||||||
# Make sure the device ID is not shown in the logs
|
# Make sure the device ID is not shown in the logs
|
||||||
if self._api_cmd == 'register_device' and kwargs.get('device_id'):
|
if self._api_cmd == 'register_device':
|
||||||
|
if kwargs.get('device_id'):
|
||||||
logger._BLACKLIST_WORDS.add(kwargs['device_id'])
|
logger._BLACKLIST_WORDS.add(kwargs['device_id'])
|
||||||
|
if kwargs.get('onesignal_id'):
|
||||||
|
logger._BLACKLIST_WORDS.add(kwargs['onesignal_id'])
|
||||||
|
|
||||||
result = {}
|
result = {}
|
||||||
logger.api_debug('Tautulli APIv2 :: API called with kwargs: %s' % kwargs)
|
logger.api_debug('Tautulli APIv2 :: API called with kwargs: %s' % kwargs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue