Skip to content

Commit e73af76

Browse files
authored
Make our worker code backward compatible with protobuf<3.8.0 (#725)
1 parent 62beb40 commit e73af76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

azure_functions_worker/dispatcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ def on_logging(self, record: logging.LogRecord, formatted_msg: str) -> None:
170170
log_level = getattr(protos.RpcLog, 'None')
171171

172172
if is_system_log_category(record.name):
173-
log_category = protos.RpcLog.RpcLogCategory.System
173+
log_category = protos.RpcLog.RpcLogCategory.Value('System')
174174
else: # customers using logging will yield 'root' in record.name
175-
log_category = protos.RpcLog.RpcLogCategory.User
175+
log_category = protos.RpcLog.RpcLogCategory.Value('User')
176176

177177
log = dict(
178178
level=log_level,

0 commit comments

Comments
 (0)