Commit cb8be815 authored by 刘小敏's avatar 刘小敏

fix(chat): 关闭 stdout 日志避免产生大量无用日志

parent 746f85d7
......@@ -167,7 +167,7 @@ class ShoproChat extends Command
@mkdir(RUNTIME_PATH . 'log/chat', 0755, true);
}
Worker::$logFile = RUNTIME_PATH . 'log/chat/shopro_chat.log';
Worker::$stdoutFile = RUNTIME_PATH . 'log/chat/std_out.log'; // 如果部署的时候部署错误(比如未删除php禁用函数),会产生大量日志,先关掉
Worker::$stdoutFile = '/dev/null'; // 关掉 stdout 日志,避免产生大量无用日志
Worker::runAll();
}
......
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