Commit 4598a97d authored by liyang's avatar liyang

fix:爬取数据入库

parent 3a1860d4
This diff is collapsed.
......@@ -10,9 +10,10 @@ class MyLogger(Logger):
# log_name = '{}.log'.format(time.strftime("%Y_%m_%d_%H_%M_%S", time.localtime()))
# log_path_file = os.path.join(get_log_path(), log_name)
# 获取日志文件路径
all_log_path_file = os.path.join(os.path.abspath(get_log_path()), "network-assets-reptile", "app.log")
error_log_path_file = os.path.join(os.path.abspath(get_log_path()), "network-assets-reptile", "error.log")
print(f'log file path:{all_log_path_file}')
all_log_path_file = os.path.join(os.path.abspath(get_log_path()), "network-assets-reptile", "log", "app.log")
error_log_path_file = os.path.join(os.path.abspath(get_log_path()), "network-assets-reptile", "log",
"error.log")
# print(f'log file path:{all_log_path_file}')
# 设置日志的名字、日志的收集级别
super().__init__("test_api", logging.DEBUG)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment