Add log level checks for debug logging records