def process_response_logs(rb_log_list): if not rb_log_list: return group_id = next(LOG_GROUP_ID) for rb_log in rb_log_list: log.from_external_source(level=RUBY_LOG_LEVEL_MAP.get( rb_log["level"], logging.NOTSET), created=rb_log["timestamp_usec"] / 1000000, usecs=int(str(rb_log["timestamp_usec"])[-6:]), message=rb_log["message"], group_id=group_id)
def process_response_logs(rb_log_list): if not rb_log_list: return group_id = next(LOG_GROUP_ID) for rb_log in rb_log_list: log.from_external_source( level=RUBY_LOG_LEVEL_MAP.get(rb_log["level"], logging.NOTSET), created=rb_log["timestamp_usec"] / 1000000, usecs=int(str(rb_log["timestamp_usec"])[-6:]), message=rb_log["message"], group_id=group_id )