Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
loveisland
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘小敏
loveisland
Commits
cb8be815
Commit
cb8be815
authored
Jul 10, 2026
by
刘小敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(chat): 关闭 stdout 日志避免产生大量无用日志
parent
746f85d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ShoproChat.php
addons/shopro/console/ShoproChat.php
+1
-1
No files found.
addons/shopro/console/ShoproChat.php
View file @
cb8be815
...
...
@@ -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
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment