diff options
Diffstat (limited to 'bitbake/lib/toaster/toastermain/settings.py')
-rw-r--r-- | bitbake/lib/toaster/toastermain/settings.py | 4 |
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)): | |||
316 | LOGGING = LOGGING_SETTINGS | 316 | LOGGING = 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'. |
319 | BASE_DIR = Path(__file__).resolve(strict=True).parent.parent | 319 | BUILDDIR = 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/ |
323 | LOG_VIEWER_FILES_PATTERN = '*.log*' | 323 | LOG_VIEWER_FILES_PATTERN = '*.log*' |
324 | LOG_VIEWER_FILES_DIR = os.path.join(BASE_DIR, 'logs') | 324 | LOG_VIEWER_FILES_DIR = os.path.join(BUILDDIR, "toaster_logs/") |
325 | LOG_VIEWER_PAGE_LENGTH = 25 # total log lines per-page | 325 | LOG_VIEWER_PAGE_LENGTH = 25 # total log lines per-page |
326 | LOG_VIEWER_MAX_READ_LINES = 100000 # total log lines will be read | 326 | LOG_VIEWER_MAX_READ_LINES = 100000 # total log lines will be read |
327 | LOG_VIEWER_PATTERNS = ['INFO', 'DEBUG', 'WARNING', 'ERROR', 'CRITICAL'] | 327 | LOG_VIEWER_PATTERNS = ['INFO', 'DEBUG', 'WARNING', 'ERROR', 'CRITICAL'] |