Skip to content

Commit

Permalink
Speed up (#2336)
Browse files Browse the repository at this point in the history
Signed-off-by: 0ssigeno <s.berni@certego.net>
  • Loading branch information
0ssigeno authored May 21, 2024
1 parent 12802eb commit b2b90f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
1 change: 1 addition & 0 deletions docker/entrypoints/uwsgi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ until cd /opt/deploy/intel_owl
do
echo "Waiting for server volume..."
done
sudo su www-data -c "mkdir -p /var/log/intel_owl/django /var/log/intel_owl/uwsgi /var/log/intel_owl/asgi /opt/deploy/intel_owl/files_required/blint /opt/deploy/intel_owl/files_required/yara"

# Apply database migrations
echo "Waiting for db to be ready..."
Expand Down
14 changes: 1 addition & 13 deletions intel_owl/settings/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,9 @@

from intel_owl import secrets

from ._util import set_permissions
from .commons import BLINT_REPORTS_PATH, DEBUG, LOG_DIR, STAGE_CI, YARA_RULES_PATH
from .commons import DEBUG, LOG_DIR

DJANGO_LOG_DIRECTORY = LOG_DIR / "django"
UWSGI_LOG_DIRECTORY = LOG_DIR / "uwsgi"
ASGI_LOG_DIRECTORY = LOG_DIR / "asgi"
for path in [
DJANGO_LOG_DIRECTORY,
UWSGI_LOG_DIRECTORY,
ASGI_LOG_DIRECTORY,
YARA_RULES_PATH,
BLINT_REPORTS_PATH,
]:
if not STAGE_CI:
set_permissions(path, force_create=True)

DISABLE_LOGGING_TEST = secrets.get_secret("DISABLE_LOGGING_TEST", False) == "True"
INFO_OR_DEBUG_LEVEL = "DEBUG" if DEBUG else "INFO"
Expand Down

0 comments on commit b2b90f1

Please sign in to comment.