mirror of
https://github.com/Retropex/raspiblitz.git
synced 2025-05-13 03:30:49 +02:00
improve debug logs readability and tips tp use without tor (#2815)
This commit is contained in:
parent
72bfa88861
commit
83838472eb
@ -26,12 +26,15 @@ function blitzhelp() {
|
|||||||
echo " bash menu"
|
echo " bash menu"
|
||||||
echo " repair menu > repair"
|
echo " repair menu > repair"
|
||||||
echo
|
echo
|
||||||
|
echo "Debug:"
|
||||||
|
echo " debug print debug logs"
|
||||||
|
echo " debug -l print debug logs with bin link with tor by default"
|
||||||
|
echo " debug -l -n print debug logs with bin link without tor"
|
||||||
|
echo
|
||||||
echo "Checks:"
|
echo "Checks:"
|
||||||
echo " status informational Blitz status screen"
|
echo " status informational Blitz status screen"
|
||||||
echo " sourcemode copy blockchain source modus"
|
echo " sourcemode copy blockchain source modus"
|
||||||
echo " check check if Blitz configuration files are correct"
|
echo " check check if Blitz configuration files are correct"
|
||||||
echo " debug print debug logs"
|
|
||||||
echo " debug -l print debug logs with bin link"
|
|
||||||
echo " patch sync scripts with latest set github and branch"
|
echo " patch sync scripts with latest set github and branch"
|
||||||
echo " cache check on chache system state"
|
echo " cache check on chache system state"
|
||||||
echo " github jumping directly into the options to change branch/repo/pr"
|
echo " github jumping directly into the options to change branch/repo/pr"
|
||||||
@ -111,10 +114,13 @@ function release() {
|
|||||||
# command: debug
|
# command: debug
|
||||||
function debug() {
|
function debug() {
|
||||||
echo "Printing debug logs. Be patient, this should take maximum 2 minutes ..."
|
echo "Printing debug logs. Be patient, this should take maximum 2 minutes ..."
|
||||||
if [[ $1 = "-l" ]]; then
|
/home/admin/config.scripts/blitz.debug.sh > /var/cache/raspiblitz/debug.log
|
||||||
/home/admin/config.scripts/blitz.debug.sh > /var/cache/raspiblitz/debug.log && cat /var/cache/raspiblitz/debug.log | torsocks nc termbin.com 9999
|
if [ "$1" = "-l" ]||[ "$1" = "--link" ]; then
|
||||||
|
proxy="-X 5 -x localhost:9050"
|
||||||
|
if [ "$2" = "-n" ]||[ "$2" = "--no-tor" ]; then proxy=""; fi
|
||||||
|
cat /var/cache/raspiblitz/debug.log | nc ${proxy} termbin.com 9999 | sed "s/termbin.com/l.termbin.com/"
|
||||||
else
|
else
|
||||||
/home/admin/config.scripts/blitz.debug.sh > /var/cache/raspiblitz/debug.log && cat /var/cache/raspiblitz/debug.log
|
cat /var/cache/raspiblitz/debug.log
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -180,7 +186,7 @@ function status() {
|
|||||||
echo
|
echo
|
||||||
echo "Keep X pressed to EXIT loop ... (please wait)"
|
echo "Keep X pressed to EXIT loop ... (please wait)"
|
||||||
echo
|
echo
|
||||||
/home/admin/_cache.sh set system_scan_all_temp "1"
|
/home/admin/_cache.sh set system_scan_all_temp "1"
|
||||||
sleep 4
|
sleep 4
|
||||||
while :
|
while :
|
||||||
do
|
do
|
||||||
|
@ -354,6 +354,8 @@ echo "*** SYSTEM CACHE STATUS ***"
|
|||||||
echo
|
echo
|
||||||
echo "*** OPTION: SHARE THIS DEBUG OUTPUT ***"
|
echo "*** OPTION: SHARE THIS DEBUG OUTPUT ***"
|
||||||
echo "An easy way to share this debug output on GitHub or on a support chat"
|
echo "An easy way to share this debug output on GitHub or on a support chat"
|
||||||
echo "use the following command and share the resulting link:"
|
echo "Use the following command and share the resulting link using termbin.com service and tor proxy:"
|
||||||
echo "debug | torsocks nc termbin.com 9999"
|
echo " debug -l"
|
||||||
|
echo "If tor is failing and you don't mind leaking your ip address to the termbin service, use without tor:"
|
||||||
|
echo " debug -l -n"
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user