林轩 8 月之前
父节点
当前提交
b39af7698b
共有 1 个文件被更改,包括 1 次插入2 次删除
  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点的数据写入历史天气数据中