2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 20:15:44 +00:00

Packager: easier to parse debug messages (#8083)

* Add new version to logging

* Add easier to search logging

* shorten appended string

* make migrations that run on fresh installs easier to read
This commit is contained in:
Matthias Mair
2024-09-05 23:33:59 +02:00
committed by GitHub
parent f8c53bc9e5
commit 3d9db2543d
5 changed files with 96 additions and 70 deletions

View File

@ -2,9 +2,9 @@
import os
from django.db import connection, migrations
from django.core.files.base import ContentFile
from django.core.files.storage import default_storage
from django.db import connection, migrations
import InvenTree.ready
@ -48,7 +48,7 @@ def convert_legacy_labels(table_name, model_name, template_model):
except Exception:
# Table likely does not exist
if not InvenTree.ready.isInTestMode():
print(f"Legacy label table {table_name} not found - skipping migration")
print(f"\nLegacy label table {table_name} not found - skipping migration")
return 0
rows = cursor.fetchall()

View File

@ -16,7 +16,7 @@ def clear_sessions(apps, schema_editor): # pragma: no cover
try:
engine = import_module(settings.SESSION_ENGINE)
engine.SessionStore.clear_expired()
print('Cleared all user sessions to deal with GHSA-2crp-q9pc-457j')
print('\nCleared all user sessions to deal with GHSA-2crp-q9pc-457j')
except Exception:
# Database may not be ready yet, so this does not matter anyhow
pass