provide context in docker startup logs (#13227) (#13229)

* provide context in docker startup logs

* reduce unnecessary docker logging

* this is set in one place; can be less complicated

(cherry picked from commit 8f668657b3)

Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
github-actions[bot]andMatthias Mair authored and GitHub committed 2026-11-09 20:27:02 +11:00
1 parent f3857c6667
commit 0b08318758
2 files changed
+9 -22

No files matched your search

+2 -13
View File
@@ -34,19 +34,8 @@ try:
main_repo = Repo(pathlib.Path(__file__).parent.parent.parent.parent.parent)
main_commit = main_repo[main_repo.head()]
except NotGitRepository:
output = logger.warning
try:
from django.conf import settings
if settings.DOCKER:
output = logger.info
except Exception:
# We may not have access to settings at this point
pass
output(git_warning_txt)
if os.environ.get('INVENTREE_DOCKER', 'false') != 'true':
logger.warning(git_warning_txt)
main_repo = None
main_commit = None