commit
737c323ddc
@ -114,9 +114,9 @@ async def baidu_sms_kafka_consumer(ns={}):
|
|||||||
})
|
})
|
||||||
|
|
||||||
# 创建日志文件
|
# 创建日志文件
|
||||||
files = "baidu_kafka_msg.txt"
|
filename = "baidu_kafka_msg.txt"
|
||||||
if not os.path.exists(filename):
|
if not os.path.exists('/d/zhc/' + filename):
|
||||||
with open(filename, 'w', encoding='utf-8') as f: # 'w' 模式会覆盖已有文件,但检查后使用是安全的
|
with open('/d/zhc/' + filename, 'w', encoding='utf-8') as f: # 'w' 模式会覆盖已有文件,但检查后使用是安全的
|
||||||
pass # 创建空文件
|
pass # 创建空文件
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user