cosmetic fix in journal logging (log basename only)

This commit is contained in:
2024-05-10 14:20:39 -05:00
parent a0f1895e6c
commit fa41d2e05e
5 changed files with 6 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ curl -s -X POST https://api.schwabapi.com/v1/oauth/token \
jq -e -r .access_token temp/accessTokenReqResp.$$.json > access_token.dat
if [[ $? -ne 0 ]]; then
errMsg="ERROR: GETTING THE ACCESS TOKEN FAILED! $(<temp/accessTokenReqResp.$$.json)"
systemd-cat -t "$0" -p err <<< ${errMsg}
systemd-cat -t "`basename $0`" -p err <<< ${errMsg}
>&2 echo "${errMsg}"
curl -d "" -X POST "https://deadswitch.kawomi.com/api/v1?topic=trade.schwab.error.getNewAccessToken&secs=1&email=joe@kawomi.com"
fi

View File

@@ -1,7 +1,7 @@
#!/bin/bash
#set -x
systemd-cat -t "$0" -p info <<< "Started"
systemd-cat -t "`basename $0`" -p info <<< "Started"
./getNewAccessToken.sh
@@ -32,4 +32,4 @@ if [[ -e temp/hadErrors.$$.tmp ]]; then
curl -d "" -X POST "https://deadswitch.kawomi.com/api/v1?topic=trade.schwab.error.recordAllSymbolsSingleRun&secs=1&email=joe@kawomi.com"
fi
systemd-cat -t "$0" -p info <<< "Finished"
systemd-cat -t "`basename $0`" -p info <<< "Finished"

View File

@@ -13,7 +13,7 @@ jqQuery=".symbol"
symbolCheck=$(jq -r ${jqQuery} < temp/optionChain.${symbol}.tmp.$$.json)
if [[ "${symbol}" != "${symbolCheck}" ]]; then
errMsg="ERROR: THE RESPONSE IS INCORRECT! Symbol: _${symbol}_ Check: _${symbolCheck}_ check file _temp/optionChain.${symbol}.tmp.$$.json_"
systemd-cat -t "$0 $1" -p err <<< ${errMsg}
systemd-cat -t "`basename $0` $1" -p err <<< ${errMsg}
>&2 echo "${errMsg}"
exit 2
else

View File

@@ -17,7 +17,7 @@ for range in ITM OTM NTM; do
symbolCheck=$(jq -r ${jqQuery} < temp/optionChain.${symbol}.${range}.tmp.$$.json)
if [[ "${symbol}" != "${symbolCheck}" ]]; then
errMsg="ERROR: THE RESPONSE IS INCORRECT! Symbol: _${symbol}_ Check: _${symbolCheck}_ check file _temp/optionChain.${symbol}.${range}.tmp.$$.json_"
systemd-cat -t "$0 $1" -p err <<< ${errMsg}
systemd-cat -t "`basename $0` $1" -p err <<< ${errMsg}
>&2 echo "${errMsg}"
exit 2
fi

View File

@@ -13,7 +13,7 @@ jqQuery=".\"${symbol}\".symbol"
symbolCheck=$(jq -r ${jqQuery} < temp/quote.${symbol}.tmp.$$.json)
if [[ "${symbol}" != "${symbolCheck}" ]]; then
errMsg="ERROR: THE RESPONSE IS INCORRECT! Symbol: _${symbol}_ Check: _${symbolCheck}_ check file _temp/quote.${symbol}.tmp.$$.json_"
systemd-cat -t "$0 $1" -p err <<< ${errMsg}
systemd-cat -t "`basename $0` $1" -p err <<< ${errMsg}
>&2 echo "${errMsg}"
exit 2
else