diff options
| author | Alassane Yattara <alassane.yattara@savoirfairelinux.com> | 2023-10-04 14:44:15 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-10-06 11:42:46 +0100 |
| commit | 78b02e1845c0b0ccf75b9de6801798ea4340addc (patch) | |
| tree | 205fb4e1e373f4da6613c46375cd339cb606070d /bitbake/lib/toaster/bldcollector | |
| parent | 3ac4694fc3b85cf23909d7e2fcc4ae97004ae927 (diff) | |
| download | poky-78b02e1845c0b0ccf75b9de6801798ea4340addc.tar.gz | |
bitbake: toaster: Monitoring - implement Django logging system
(Bitbake rev: 2efb146480ee46c0463d9edb71bf1c03ce15bcf2)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/bldcollector')
| -rw-r--r-- | bitbake/lib/toaster/bldcollector/views.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/bldcollector/views.py b/bitbake/lib/toaster/bldcollector/views.py index 04cd8b3dd4..bdf38ae6e8 100644 --- a/bitbake/lib/toaster/bldcollector/views.py +++ b/bitbake/lib/toaster/bldcollector/views.py | |||
| @@ -14,8 +14,11 @@ import subprocess | |||
| 14 | import toastermain | 14 | import toastermain |
| 15 | from django.views.decorators.csrf import csrf_exempt | 15 | from django.views.decorators.csrf import csrf_exempt |
| 16 | 16 | ||
| 17 | from toastermain.logs import log_view_mixin | ||
| 18 | |||
| 17 | 19 | ||
| 18 | @csrf_exempt | 20 | @csrf_exempt |
| 21 | @log_view_mixin | ||
| 19 | def eventfile(request): | 22 | def eventfile(request): |
| 20 | """ Receives a file by POST, and runs toaster-eventreply on this file """ | 23 | """ Receives a file by POST, and runs toaster-eventreply on this file """ |
| 21 | if request.method != "POST": | 24 | if request.method != "POST": |
