Skip to content

Commit

Permalink
[NCL-7150] Rename levelname to level
Browse files Browse the repository at this point in the history
Rename 'levelname' to 'level', rather than 'levelName'
  • Loading branch information
thescouser89 committed Jun 30, 2022
1 parent 6988c39 commit 108162b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repour/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ def adjust_kafka_metadata(data):
data["@timestamp"] = data["timestamp"]

# NCL-7150: rename fields for consistency
if "levelName" in data:
data["level"] = data["levelName"]
if "levelname" in data:
data["level"] = data["levelname"]
# NCL-7150: rename fields for consistency
if "host" in data:
data["hostName"] = data["host"]
Expand Down

0 comments on commit 108162b

Please sign in to comment.