2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 03:55:41 +00:00

Remove translation for logged warnings (#8173)

This commit is contained in:
Oliver
2024-09-24 21:47:47 +10:00
committed by GitHub
parent 6d0353028f
commit 8928bc127a

View File

@ -4,7 +4,6 @@ import logging
from datetime import timedelta
from django.utils import timezone
from django.utils.translation import gettext_lazy as _
from django_q.models import Success
from django_q.status import Stat
@ -62,13 +61,13 @@ def check_system_health(**kwargs):
if not is_worker_running(**kwargs): # pragma: no cover
result = False
logger.warning(_('Background worker check failed'))
logger.warning('Background worker check failed')
if not InvenTree.helpers_email.is_email_configured(): # pragma: no cover
result = False
logger.warning(_('Email backend not configured'))
logger.warning('Email backend not configured')
if not result: # pragma: no cover
logger.warning(_('InvenTree system health checks failed'))
logger.warning('InvenTree system health checks failed')
return result