summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastermain/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastermain/settings.py')
-rw-r--r--bitbake/lib/toaster/toastermain/settings.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastermain/settings.py b/bitbake/lib/toaster/toastermain/settings.py
index b083cf5885..5de881c4bb 100644
--- a/bitbake/lib/toaster/toastermain/settings.py
+++ b/bitbake/lib/toaster/toastermain/settings.py
@@ -316,12 +316,12 @@ for t in os.walk(os.path.dirname(currentdir)):
316LOGGING = LOGGING_SETTINGS 316LOGGING = LOGGING_SETTINGS
317 317
318# Build paths inside the project like this: BASE_DIR / 'subdir'. 318# Build paths inside the project like this: BASE_DIR / 'subdir'.
319BASE_DIR = Path(__file__).resolve(strict=True).parent.parent 319BUILDDIR = os.environ.get("BUILDDIR", "/tmp")
320 320
321# LOG VIEWER 321# LOG VIEWER
322# https://pypi.org/project/django-log-viewer/ 322# https://pypi.org/project/django-log-viewer/
323LOG_VIEWER_FILES_PATTERN = '*.log*' 323LOG_VIEWER_FILES_PATTERN = '*.log*'
324LOG_VIEWER_FILES_DIR = os.path.join(BASE_DIR, 'logs') 324LOG_VIEWER_FILES_DIR = os.path.join(BUILDDIR, "toaster_logs/")
325LOG_VIEWER_PAGE_LENGTH = 25 # total log lines per-page 325LOG_VIEWER_PAGE_LENGTH = 25 # total log lines per-page
326LOG_VIEWER_MAX_READ_LINES = 100000 # total log lines will be read 326LOG_VIEWER_MAX_READ_LINES = 100000 # total log lines will be read
327LOG_VIEWER_PATTERNS = ['INFO', 'DEBUG', 'WARNING', 'ERROR', 'CRITICAL'] 327LOG_VIEWER_PATTERNS = ['INFO', 'DEBUG', 'WARNING', 'ERROR', 'CRITICAL']