Skip to content

Commit

Permalink
Merge pull request #36 from salute-developers/DPNLPF-1743
Browse files Browse the repository at this point in the history
DPNLPF-1743
  • Loading branch information
Dan1lD authored Aug 9, 2022
2 parents dd58c97 + 98d4aff commit d488d6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/logging/logger_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def log(message, user=None, params=None, level="INFO", exc_info=None, log_store_
except AttributeError:
message_maker = LoggerMessageCreator

log_store_for_map = getattr(logging,"log_store_for_map", None)
log_store_for_map = getattr(logging, "log_store_for_map", None)
if log_store_for_map is not None and params is not None:
log_store_for = log_store_for_map.get(params.get(log_const.KEY_NAME), log_store_for)

Expand Down
3 changes: 2 additions & 1 deletion smart_kit/handlers/handle_respond.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def run(self, payload, user):
log_const.KEY_NAME: "process_time",
"callback_id": str(callback_id),
"process_time": self.get_processing_time(user),
"action_name": action_name
"action_name": action_name,
"surface": user.message.device.surface,
}

if user.behaviors.has_callback(callback_id):
Expand Down

0 comments on commit d488d6b

Please sign in to comment.