Skip to content

Commit

Permalink
perf: 敏感日志加密 TencentBlueKing#7364
Browse files Browse the repository at this point in the history
  • Loading branch information
lTimej committed Apr 22, 2024
1 parent 39b2370 commit d345c0d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/blueking/component/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@

import ujson as json

from .exceptions import ComponentAPIException
from .conf import COMPONENT_SYSTEM_HOST
from gcloud.utils.handlers import handle_plain_log

from .conf import COMPONENT_SYSTEM_HOST
from .exceptions import ComponentAPIException

logger = logging.getLogger("component")

Expand Down Expand Up @@ -95,12 +96,12 @@ def _call(self, *args, **kwargs):
log_level = logging.DEBUG if json_resp["result"] else logging.ERROR
logger.log(
log_level,
u"Component return message: %s, request_id=%s, url=%s, params=%s, data=%s, response=%s",
"Component return message: %s, request_id=%s, url=%s, params=%s, data=%s, response=%s",
json_resp["message"],
json_resp.get("request_id"),
self.url,
params,
data,
handle_plain_log(data),
resp.text,
)

Expand Down

0 comments on commit d345c0d

Please sign in to comment.