adding back check for debug log level