aboutsummaryrefslogtreecommitdiffstats
path: root/bin/dev_tools/tail.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dev_tools/tail.sh')
-rwxr-xr-xbin/dev_tools/tail.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/dev_tools/tail.sh b/bin/dev_tools/tail.sh
index 4c44cd47..8b18325a 100755
--- a/bin/dev_tools/tail.sh
+++ b/bin/dev_tools/tail.sh
@@ -2,6 +2,12 @@
# SRTool helper script to quickly dump the log files
+tag=0
+if [ "tag" == "$1" ] ; then
+ tag=1
+ shift
+fi
+
CONTEXT=$1
if [ -n "$CONTEXT" ] ; then
CONTEXT="-n $CONTEXT"
@@ -13,6 +19,12 @@ if [ -z "$SRTDBG_LOG" ] ; then
SRTDBG_LOG=/tmp/srt_dbg.log
fi
+if [ 1 -eq $tag ] ; then
+ echo "===TAG `date` TAG===" >> srt_web.log
+ echo "===TAG `date` TAG===" >> $SRTDBG_ERR_LOG
+ echo "===TAG `date` TAG===" >> $SRTDBG_LOG
+fi
+
echo "--- srt_web.log --------------------"
tail srt_web.log $CONTEXT
echo "--- $SRTDBG_ERR_LOG --------------------"