diff options
author | Tim Orling <tim.orling@konsulko.com> | 2023-10-26 15:00:22 -0700 |
---|---|---|
committer | Tim Orling <tim.orling@konsulko.com> | 2023-10-26 15:00:22 -0700 |
commit | f714ebee1a0278eb7576016f6d372abe6461f637 (patch) | |
tree | 5326f5af999e6d489f1324fccd08de23d1065bb3 /lib/toaster/toastermain/settings.py | |
parent | 79153aec35c26be386a619636f9caeb09534eb09 (diff) | |
download | bitbake-contrib-f714ebee1a0278eb7576016f6d372abe6461f637.tar.gz |
toaster: log_viewer logs in BUILDDIR/toaster_logs
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Diffstat (limited to 'lib/toaster/toastermain/settings.py')
-rw-r--r-- | lib/toaster/toastermain/settings.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/toaster/toastermain/settings.py b/lib/toaster/toastermain/settings.py index c65f4b630..20e86fb0b 100644 --- a/lib/toaster/toastermain/settings.py +++ b/lib/toaster/toastermain/settings.py @@ -322,7 +322,10 @@ BUILDDIR = os.environ.get("BUILDDIR") # LOG VIEWER # https://pypi.org/project/django-log-viewer/ LOG_VIEWER_FILES_PATTERN = '*.log*' -LOG_VIEWER_FILES_DIR = BUILDDIR +LOG_VIEWER_FILES_DIR = os.path.join(os.environ.get('BUILDDIR', '/tmp'), 'toaster_logs') +print("******************") +print(LOG_VIEWER_FILES_DIR) +print("******************") LOG_VIEWER_PAGE_LENGTH = 25 # total log lines per-page LOG_VIEWER_MAX_READ_LINES = 100000 # total log lines will be read LOG_VIEWER_PATTERNS = ['INFO', 'DEBUG', 'WARNING', 'ERROR', 'CRITICAL'] |