yf_yzl 2 years ago
parent
commit
a40e7435c6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      smartfarming/api/views/forecast/worm_lamp.py

+ 2 - 2
smartfarming/api/views/forecast/worm_lamp.py

@@ -684,7 +684,7 @@ def pest_statistics_char_new(request):
                     else:
                         pest_info_total[pest_name] = pest_num
                 except Exception as e:
-                    logger.error(f'虫情分析errorlogger.error(f"{tuple_result} {e}")')
+                    logger.error(f'虫情分析errorlogger.error(f"{result} {tuple_result} {e}")')
     # 最后一天的数据统计,循环内加不了
     for pest_day_key,pest_day_value in pest_day_info.items():
         if pest_day_key in chart_info:
@@ -808,7 +808,7 @@ def pest_image_source(request):
                     pest_string+=pest_name
                     pest_dict[pest_name] = int(tuple_result[1])
                 except Exception as e:
-                    logger.error(f"{tuple_result} {e}")
+                    logger.error(f"{result} {tuple_result} {e}")
         if select_name and select_name not in pest_string:
             continue
         addtime = photo_object.addtime