openvidu-deployment: Better usage of logs command in media nodes

pull/553/head
cruizba 2020-11-05 12:10:29 +01:00
parent a4c8e02a3f
commit 225f1756e2
1 changed files with 7 additions and 2 deletions

View File

@ -216,7 +216,8 @@ usage() {
printf "\n\tstart\t\t\tStart media node service"
printf "\n\tstop\t\t\tStop 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 [version]\tUpgrade to the specific Media Node version"
printf "\n\tversion\t\t\tShow version of Media Node"
@ -250,7 +251,11 @@ case $1 in
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
;;
;;