Fixes verbose parsing messages.

main
Yasen Pramatarov 2024-05-28 17:16:30 +03:00
parent ec68fef991
commit 6633278599
1 changed files with 5 additions and 1 deletions

4
jilo
View File

@ -383,8 +383,12 @@ case "$cmd" in
jitsi_log_parse "$LOGFILE" "$last_pos" "$verbose" jitsi_log_parse "$LOGFILE" "$last_pos" "$verbose"
if [[ "$verbose" == true ]]; then if [[ "$verbose" == true ]]; then
if [[ "$new_last_pos" == "$last_pos" ]]; then
echo "The file has not changed, no new data inserted."
else
echo -e "\nNew last position after parsing: $new_last_pos" echo -e "\nNew last position after parsing: $new_last_pos"
fi fi
fi
# update the state in db # update the state in db
set_state "$LOGFILE" "$current_filetime" "$current_size" "$new_last_pos" "$current_inode" "$jitsi_component" set_state "$LOGFILE" "$current_filetime" "$current_size" "$new_last_pos" "$current_inode" "$jitsi_component"