@@ -816,7 +816,7 @@ def get(self, request):
816
816
writer = csv .writer (response )
817
817
allowed_attributes = get_attributes ()
818
818
excludes_list = get_excludes ()
819
- allowed_foreign_keys = get_attributes ()
819
+ allowed_foreign_keys = get_foreign_keys ()
820
820
first_row = True
821
821
822
822
for finding in findings :
@@ -940,10 +940,11 @@ def get(self, request):
940
940
self .font_bold = font_bold
941
941
allowed_attributes = get_attributes ()
942
942
excludes_list = get_excludes ()
943
- allowed_foreign_keys = get_attributes ()
943
+ allowed_foreign_keys = get_foreign_keys ()
944
944
945
945
row_num = 1
946
946
for finding in findings :
947
+ logger .debug (f"processing finding: { finding .id } " )
947
948
if row_num == 1 :
948
949
col_num = 1
949
950
for key in dir (finding ):
@@ -955,7 +956,7 @@ def get(self, request):
955
956
cell .font = font_bold
956
957
col_num += 1
957
958
except Exception as exc :
958
- logger .error ( "Error in attribute: " + str (exc ))
959
+ logger .warning ( f "Error in attribute: { key } " + str (exc ))
959
960
cell = worksheet .cell (row = row_num , column = col_num , value = key )
960
961
col_num += 1
961
962
continue
@@ -1007,7 +1008,7 @@ def get(self, request):
1007
1008
worksheet .cell (row = row_num , column = col_num , value = value )
1008
1009
col_num += 1
1009
1010
except Exception as exc :
1010
- logger .error ( "Error in attribute: " + str (exc ))
1011
+ logger .warning ( f "Error in attribute: { key } " + str (exc ))
1011
1012
worksheet .cell (row = row_num , column = col_num , value = "Value not supported" )
1012
1013
col_num += 1
1013
1014
continue
0 commit comments