Skip to content

Commit 526e648

Browse files
author
Kristan Kenney
committed
Add log types
1 parent 069ab6e commit 526e648

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

bin/v-log-event

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,16 @@ date=$(echo "$time_n_date" |cut -f 2 -d \ )
3131
#----------------------------------------------------------#
3232

3333

34-
34+
# Provide context switch for different log types
35+
if [ "$log_type" = "user" ]; then
36+
log_history "$message" '' "$user"
37+
exit
38+
fi
39+
40+
if [ "$log_type" = "system" ]; then
41+
log_history "$message" '' 'admin'
42+
exit
43+
fi
3544

3645

3746
#----------------------------------------------------------#

0 commit comments

Comments
 (0)