request_id = int(request_id, 16)
# Convert the "type" field to a human-readable record type name
- # using the query_type dictionary. If the right name isn't present
- # in the dictionary, we use the (decimal) type id instead.
- query_type = int(query_type, 16) # "001c" -> 28
- query_type = QUERY_TYPE_NAME.get(query_type, type) # 28 -> "aaaa"
+ # using the query_type dictionary.
+ query_type = int(query_type, 16) # "001c" -> 28
+ query_type = QUERY_TYPE_NAME.get(query_type) # 28 -> "aaaa"
line_tpl = "{timestamp} "