From 1cb88264ee11e12b0e5efe8f3de9abdcbf4eb141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Thu, 4 Jun 2020 11:22:20 +0200 Subject: [PATCH] Add program name in debug messages --- cluster/disable.host.queue.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cluster/disable.host.queue.sh b/cluster/disable.host.queue.sh index cc9b11a..8d8d648 100755 --- a/cluster/disable.host.queue.sh +++ b/cluster/disable.host.queue.sh @@ -75,7 +75,7 @@ is_queue_enable() { # {{{ esac ## Simple debug message to valid current variables - [ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6b\e[m\n' "DEBUG : is_queue_enable − \ + [ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6b\e[m\n' "DEBUG − ${PROGNAME} : is_queue_enable − \ SGE queue: ${RED}${local_sge_queue_name:=/dev/null}${COLOR_DEBUG} \ state is: ${RED}${local_sge_queue_state:=/dev/null}${COLOR_DEBUG}." @@ -107,7 +107,7 @@ is_queue_disable() { # {{{ esac ## Simple debug message to valid current variables - [ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6b\e[m\n' "DEBUG : is_queue_disable − \ + [ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6b\e[m\n' "DEBUG − ${PROGNAME} : is_queue_disable − \ SGE queue: ${RED}${local_sge_queue_name:=/dev/null}${COLOR_DEBUG} \ state is: ${RED}${local_sge_queue_state:=/dev/null}${COLOR_DEBUG}." @@ -121,7 +121,7 @@ disable_sge_queue() { # {{{ local_sge_queue_name="${2}" ## Simple debug message to valid current variables - [ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6b\e[m\n' "DEBUG : disable_sge_queue − \ + [ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6b\e[m\n' "DEBUG − ${PROGNAME} : disable_sge_queue − \ Try to disable SGE queue: ${RED}${local_sge_queue_name:=/dev/null}@${local_sge_hostname:=/dev/null}${COLOR_DEBUG}." ## SGE command to disable the queue @@ -141,7 +141,7 @@ main() { # {{{ | cut -d"'" -f2 )" ## Simple debug message with color to valid current variables - [ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6b\e[m\n' "DEBUG : main − Try to manage \ + [ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6b\e[m\n' "DEBUG − ${PROGNAME} : main − Try to manage \ SGE queue: ${RED}${sge_queue_name:=/dev/null}${COLOR_DEBUG} \ for host: ${RED}${sge_hostname:=/dev/null}${COLOR_DEBUG}."