fix the log level error

on info/debug level