Skip to content

Commit

Permalink
Update proxy.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz1273327 committed Jun 24, 2021
1 parent d9c125a commit f748f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyloggerhelper/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def new_instance(self, app_name: str, log_level: str, binds: Optional[Dict[str,
root_logger.addHandler(handler)
root_logger.setLevel(self.log_level) # 设置最低log等级
log = structlog.get_logger(self.app_name, **kwargs)
b = { "app_name": app_name }
b = {"app_name": app_name}
if binds:
b.update(binds)
log = log.bind(**b)
Expand Down

0 comments on commit f748f73

Please sign in to comment.