林轩 8 mēneši atpakaļ
vecāks
revīzija
b39af7698b
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      crond_script/today_weather.py

+ 1 - 2
crond_script/today_weather.py

@@ -147,8 +147,7 @@ def main():
             time.sleep(1)
         else:
             time.sleep(0.5)
-
-    with open("/data/weather/weather_count.txt", 'a+', encoding='utf-8') as f:
+    with open("/var/log/bigdata_api/today_count.log", 'a+', encoding='utf-8') as f:
         f.write(f"当日天气接口:  开始时间:{start_ct_time}  结束时间:{datetime.now().strftime('%Y-%m-%d %H:%M:%S')} 调用次数:{day_ct} \n")
 
     # 把19点的数据写入历史天气数据中