mirror of
https://github.com/inventree/InvenTree.git
synced 2026-05-09 03:03:41 +00:00
(cherry picked from commit 556de563e2)
Co-authored-by: Matthias Mair <code@mjmair.com>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
committed by
GitHub
parent
457e8b4325
commit
e60092e1f6
@@ -12,8 +12,6 @@ import sys
|
||||
from datetime import datetime as dt
|
||||
from datetime import timedelta as td
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
from .api_version import INVENTREE_API_TEXT, INVENTREE_API_VERSION
|
||||
|
||||
# InvenTree software version
|
||||
@@ -39,6 +37,8 @@ try:
|
||||
output = logger.warning
|
||||
|
||||
try:
|
||||
from django.conf import settings
|
||||
|
||||
if settings.DOCKER:
|
||||
output = logger.info
|
||||
except Exception:
|
||||
|
||||
Reference in New Issue
Block a user