Skip to content

Commit fe78f96

Browse files
committed
Fixed error that was not searching /var/log/bigbluebutton/prentation log files for errors when doing bbb-record --debug
1 parent b2767aa commit fe78f96

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

bigbluebutton-config/bin/bbb-record

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -528,21 +528,19 @@ if [ $DEBUG ]; then
528528
#
529529
STAGES="process publish"
530530
for type in $TYPES; do
531-
for stage in $STAGES; do
532-
if ls -A $LOG_DIR/$type/$stage-* &> /dev/null; then
533-
rm -rf /tmp/t
534-
grep -B 3 "ERROR -- : Error:" $LOG_DIR/$type/$stag-* | egrep -w 'Task:| Error:' > /tmp/t
535-
if [ -s /tmp/t ]; then
536-
echo " -- ERRORS found while processing slides $LOG_DIR/$type/$stag-* -- "
537-
cat /tmp/t
538-
echo
539-
fi
540-
fi
541-
done
542-
done
543-
544-
545-
531+
for stage in $STAGES; do
532+
LOC=$LOG_DIR/$type/$stage
533+
if ls -A $LOC-* &> /dev/null; then
534+
rm -rf /tmp/t
535+
grep -B 3 "ERROR -- : Error:" $LOC-* | egrep -w 'Task:| Error:' > /tmp/t
536+
if [ -s /tmp/t ]; then
537+
echo " -- ERRORS found while processing slides $LOC-* -- "
538+
cat /tmp/t
539+
echo
540+
fi
541+
fi
542+
done
543+
done
546544

547545

548546
#

0 commit comments

Comments
 (0)