Merge pull request #1806 from openimsdk/cubxxw-patch-1

Fix(release-v3.5) Enhance Component Monitoring with Dual Logging to Screen and File
release-v3.5
Xinwei Xiong 10 months ago committed by GitHub
commit a2da40ceab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -105,11 +105,7 @@ function openim::tools::start_service() {
fi
openim::log::status "Starting ${binary_name}..."
# Later, after discarding Docker, the Docker keyword is unreliable, and Kubepods is used
if grep -qE 'docker|kubepods' /proc/1/cgroup || [ -f /.dockerenv ]; then
${cmd} >> "${LOG_FILE}" 2>&1
else
${cmd} | tee -a "${LOG_FILE}"
fi
}
function openim::tools::start() {

Loading…
Cancel
Save