mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 19:02:31 +08:00
fix: use printf replace the echo
This commit is contained in:
parent
ce47f30b10
commit
beeae4956d
@ -149,7 +149,7 @@ func (m *MsgTransfer) Start(prometheusPort int) error {
|
|||||||
m.cancel()
|
m.cancel()
|
||||||
m.historyCH.historyConsumerGroup.Close()
|
m.historyCH.historyConsumerGroup.Close()
|
||||||
m.historyMongoCH.historyConsumerGroup.Close()
|
m.historyMongoCH.historyConsumerGroup.Close()
|
||||||
|
return nil
|
||||||
case <-netDone:
|
case <-netDone:
|
||||||
m.cancel()
|
m.cancel()
|
||||||
m.historyCH.historyConsumerGroup.Close()
|
m.historyCH.historyConsumerGroup.Close()
|
||||||
@ -157,6 +157,4 @@ func (m *MsgTransfer) Start(prometheusPort int) error {
|
|||||||
close(netDone)
|
close(netDone)
|
||||||
return netErr
|
return netErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1619,7 +1619,7 @@ openim::util::check_ports() {
|
|||||||
|
|
||||||
# Print information about ports whose processes are not running.
|
# Print information about ports whose processes are not running.
|
||||||
if [[ ${#not_started[@]} -ne 0 ]]; then
|
if [[ ${#not_started[@]} -ne 0 ]]; then
|
||||||
echo "\n### Not started ports:"
|
printf "\n### Not started ports:"
|
||||||
for port in "${not_started[@]}"; do
|
for port in "${not_started[@]}"; do
|
||||||
openim::log::error "Port $port is not started."
|
openim::log::error "Port $port is not started."
|
||||||
done
|
done
|
||||||
@ -1627,7 +1627,7 @@ openim::util::check_ports() {
|
|||||||
|
|
||||||
# Print information about ports whose processes are running.
|
# Print information about ports whose processes are running.
|
||||||
if [[ ${#started[@]} -ne 0 ]]; then
|
if [[ ${#started[@]} -ne 0 ]]; then
|
||||||
echo "\n### Started ports:"
|
printf "\n### Started ports:"
|
||||||
for info in "${started[@]}"; do
|
for info in "${started[@]}"; do
|
||||||
echo "$info"
|
echo "$info"
|
||||||
done
|
done
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user