Skip to content

HAMUR_W2007: HAMUR_LOG_LEVEL or HAMUR_LOG_FORMAT has an invalid value

HAMUR_LOG_LEVEL or HAMUR_LOG_FORMAT has an invalid value. Warning HAMUR_W2007 belongs to hamur, server (2001 – 2999).

Message

text
HAMUR_W2007 HAMUR_LOG_LEVEL "<env>" is not a level; use <LEVEL_NAMES>
text
HAMUR_W2007 HAMUR_LOG_FORMAT "<env>" is not a format; use json, pretty or false

Cause

HAMUR_LOG_LEVEL is not a log level, or HAMUR_LOG_FORMAT is not json, pretty or false. Hamur ignores it.

Fix

Set the variable to one of the values the message lists.