Removed log error lines in earmark handling since the raised EarmarkException
already covers the case. The exception is harmless and results in the earmark
being set to an empty string, so additional error logging is unnecessary.
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit
1f86c9b1e74985372db42412943c719f12906523)
log.info(f"No earmark set for the path while {action}. Returning empty result.")
return ''
else:
- log.error(f"Error {action} earmark: {e}")
raise EarmarkException(-e.errno, e.strerror) from e
else:
- log.error(f"Unexpected error {action} earmark: {e}")
raise EarmarkException(errno.EFAULT, f"Unexpected error {action} earmark: {e}") from e
@staticmethod