mirror of https://github.com/OpenVidu/openvidu.git
openvidu-deployment: Better usage of logs command in media nodes
parent
a4c8e02a3f
commit
225f1756e2
|
@ -216,7 +216,8 @@ usage() {
|
||||||
printf "\n\tstart\t\t\tStart media node service"
|
printf "\n\tstart\t\t\tStart media node service"
|
||||||
printf "\n\tstop\t\t\tStop media node service"
|
printf "\n\tstop\t\t\tStop media node service"
|
||||||
printf "\n\trestart\t\t\tRestart media node service"
|
printf "\n\trestart\t\t\tRestart media node service"
|
||||||
printf "\n\tlogs <container_name>\t\t\tShow logs by container name"
|
printf "\n\tlogs\t\t\tShow media-node-controller logs."
|
||||||
|
printf "\n\tlogs [container_name]\t\t\tShow logs by container name."
|
||||||
printf "\n\tupgrade\t\t\tUpgrade to the lastest Media Node version"
|
printf "\n\tupgrade\t\t\tUpgrade to the lastest Media Node version"
|
||||||
printf "\n\tupgrade [version]\tUpgrade to the specific Media Node version"
|
printf "\n\tupgrade [version]\tUpgrade to the specific Media Node version"
|
||||||
printf "\n\tversion\t\t\tShow version of Media Node"
|
printf "\n\tversion\t\t\tShow version of Media Node"
|
||||||
|
@ -250,7 +251,11 @@ case $1 in
|
||||||
tail_latest_kurento_logs
|
tail_latest_kurento_logs
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
docker logs -f "$2"
|
if [[ -z "$2" ]]; then
|
||||||
|
docker-compose logs -f media-node-controller
|
||||||
|
else
|
||||||
|
docker logs -f "$2"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue