浏览代码

!2 not loki

pcacc 3 月之前
父节点
当前提交
9baf0a2da0
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      scriptBase/base.py

+ 2 - 1
scriptBase/base.py

@@ -19,13 +19,14 @@ def custom_print(*args, **kwargs):
     original_print(*modified_args, **kwargs)
 
     dstStr = ' '.join(str(arg) for arg in args)
-
+    '''
     log_thread = threading.Thread(
         target=log_to_loki,
         args=(socket.gethostname(), dstStr),
         daemon=True  # 设为守护线程(主线程退出时自动结束)
     )
     log_thread.start()  # 启动线程(不阻塞主线程)
+    '''
 
 
 # 替换内置的 print 函数为自定义的输出函数