summaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/widgets.py
diff options
context:
space:
mode:
authorAlassane Yattara <alassane.yattara@savoirfairelinux.com>2023-10-04 14:44:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-10-05 21:17:09 +0100
commit2efb146480ee46c0463d9edb71bf1c03ce15bcf2 (patch)
treef2dcbccaf20ac8ff94555301ff5ae4d3f8c8fa2a /lib/toaster/toastergui/widgets.py
parent868c88a249ef4b9fe5a891e76e25e054e4fcd994 (diff)
downloadbitbake-2efb146480ee46c0463d9edb71bf1c03ce15bcf2.tar.gz
toaster: Monitoring - implement Django logging system
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster/toastergui/widgets.py')
-rw-r--r--lib/toaster/toastergui/widgets.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/toaster/toastergui/widgets.py b/lib/toaster/toastergui/widgets.py
index 6e87285c8..b32abf40b 100644
--- a/lib/toaster/toastergui/widgets.py
+++ b/lib/toaster/toastergui/widgets.py
@@ -32,6 +32,7 @@ import re
import os
from toastergui.tablefilter import TableFilterMap
+from toastermain.logs import log_view_mixin
try:
from urllib import unquote_plus
@@ -84,6 +85,7 @@ class ToasterTable(TemplateView):
return context
+ @log_view_mixin
def get(self, request, *args, **kwargs):
if request.GET.get('format', None) == 'json':
@@ -415,6 +417,7 @@ class ToasterTypeAhead(View):
def __init__(self, *args, **kwargs):
super(ToasterTypeAhead, self).__init__()
+ @log_view_mixin
def get(self, request, *args, **kwargs):
def response(data):
return HttpResponse(json.dumps(data,
@@ -470,6 +473,7 @@ class MostRecentBuildsView(View):
return False
+ @log_view_mixin
def get(self, request, *args, **kwargs):
"""
Returns a list of builds in JSON format.