Change map function log output to error level