Fix error level lookup

The mapping between an error level in the esel to a phosphor-logging
error level was broken. This commit fixes it.

This commits also specifies the error level while calling the error
report() API, so that error D-Bus objects reflect the right error level
(as per the esel).

Resolves openbmc/openbmc#3014.

Change-Id: I9891d468d98d169f73275a3693df4f3a2166001d
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
1 file changed