ceph-osd: Log the script name, lineno and funcname
For the scripts in the ceph-osd daemonset that source common.sh (i.e. those that run in the osd-init and ceph-osd-default containers), updates the PS4 prompt so that the script name, line number, and function are included in xtrace output. Change-Id: Ieebbb82b64db4cf363ed4396289c823744d4a860
This commit is contained in:
parent
1065b48025
commit
67d762eef3
@ -15,6 +15,7 @@ limitations under the License.
|
||||
*/}}
|
||||
|
||||
set -ex
|
||||
export PS4='+${BASH_SOURCE:+$(basename ${BASH_SOURCE}):${LINENO}:}${FUNCNAME:+${FUNCNAME}():} '
|
||||
|
||||
: "${CRUSH_LOCATION:=root=default host=${HOSTNAME}}"
|
||||
: "${OSD_PATH_BASE:=/var/lib/ceph/osd/${CLUSTER}}"
|
||||
|
@ -15,6 +15,7 @@ limitations under the License.
|
||||
*/}}
|
||||
|
||||
set -ex
|
||||
export PS4='+${BASH_SOURCE:+$(basename ${BASH_SOURCE}):${LINENO}:}${FUNCNAME:+${FUNCNAME}():} '
|
||||
|
||||
: "${CRUSH_LOCATION:=root=default host=${HOSTNAME}}"
|
||||
: "${OSD_PATH_BASE:=/var/lib/ceph/osd/${CLUSTER}}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user