fix: edit file logs

This commit is contained in:
Cyrille L 2022-06-15 18:15:52 +02:00
parent 3c08cb939b
commit 279164f734
3 changed files with 4 additions and 5 deletions

View File

@ -136,7 +136,7 @@ author__check || exit 0 # Check if authors registresd
case "$1" in case "$1" in
db) db__OPTIONS "$2" ;; db) db__OPTIONS "$2" ;;
sync|-s) sync__OPTIONS "$2" ;; sync|-s) sync__OPTIONS "$2" ;;
edit|-E) edit__file_OPTIONS "$2" "$3" ;; edit|-E) edit__file_OPTIONS "$2" "$3" ;;
esac esac
if__gsl_post # from gsl__post_manager: check if .gsl if__gsl_post # from gsl__post_manager: check if .gsl
@ -147,7 +147,6 @@ case "$1" in
www) srv__OPTIONS "$1" "$2" "$3" ;; www) srv__OPTIONS "$1" "$2" "$3" ;;
wip) srv__OPTIONS "$1" "$2" "$3" ;; wip) srv__OPTIONS "$1" "$2" "$3" ;;
stats) stats__datas;exit ;; stats) stats__datas;exit ;;
*) gsl help; exit ;;
esac esac
#====================================================================== #======================================================================

View File

@ -52,7 +52,7 @@ else
gsl_log_level="-i" gsl_log_level="-i"
fi fi
gsl__logs_print "$gsl_log_level" -f -e \ gsl__logs_print "$gsl_log_level" -e -f \
"$gsl_log_infos" \ "$gsl_log_infos" \
"$gsl_this_post" "$gsl_this_post"

View File

@ -100,9 +100,10 @@ case "$2" in
-c) log_f2="Content" ;; -c) log_f2="Content" ;;
-g) log_f2="GSL" ;; -g) log_f2="GSL" ;;
-B) log_f2="Starting" ;; -B) log_f2="Starting" ;;
-e) log_f2="Edit" ;;
-E) log_f2="Stopping" ;; -E) log_f2="Stopping" ;;
-A) log_f2="Article" ;; -A) log_f2="Article" ;;
-srv) log_f2="Server" ;; -srv) log_f2="Server" ;;
-st) log_f2="Stats" ;; -st) log_f2="Stats" ;;
-R) log_f2="Removed" ;; -R) log_f2="Removed" ;;
-D) log_f2="Database" ;; -D) log_f2="Database" ;;
@ -113,7 +114,6 @@ esac
case "$3" in case "$3" in
-c) log_f3="Created" ;; -c) log_f3="Created" ;;
-f) log_f3="file" ;; -f) log_f3="file" ;;
-e) log_f3="Edit" ;;
-h) log_f3="Hash" ;; -h) log_f3="Hash" ;;
-C) log_f3="Check" ;; -C) log_f3="Check" ;;
-M) log_f3="Make" ;; -M) log_f3="Make" ;;