Skip to content

Commit 449070c

Browse files
author
Kristan Kenney
committed
Update logging messages
1 parent 64b586d commit 449070c

23 files changed

+15
-29
lines changed

bin/v-add-cron-job

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ $BIN/v-restart-cron
8888
check_result $? "Cron restart failed" >/dev/null
8989

9090
# Logging
91-
$BIN/v-log-action "$user" "Info" "Cron Jobs" "Added cron job $job"
92-
log_history "added cron job $job"
91+
$BIN/v-log-action "$user" "Info" "Cron Jobs" "Cron job added (Job: $job, Command: $cmd)"
9392
log_event "$OK" "$ARGUMENTS"
9493

9594
exit

bin/v-add-fastcgi-cache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ $BIN/v-restart-web
108108
check_result $? "Web server restart failed" > /dev/null
109109

110110
# Logging
111-
log_history "Enabled FastCGI cache for $domain"
111+
$BIN/v-log-action "$user" "Info" "Web" "FastCGI cache enabled (Domain: $domain)."
112112
log_event "$OK" "$ARGUMENTS"
113113

114114
exit

bin/v-add-sys-ip

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,7 @@ if [ ! -z "$MAIL_SYSTEM" ] && [ ! -z "$helo"]; then
225225
fi
226226

227227
# Logging
228-
$BIN/v-log-action "system" "Info" "Network" "Added an IP address to the system (IP: $ip)."
229-
log_history "added system ip address $ip" '' 'admin'
228+
$BIN/v-log-action "system" "Info" "Network" "Added new IP address to the system (IP: $ip)."
230229
log_event "$OK" "$ARGUMENTS"
231230

232231
exit

bin/v-add-user-ssh-key

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ echo "$key" >> "$AUTHKEY_FILE"
6969
#----------------------------------------------------------#
7070

7171
# Logging
72-
log_history "Added ssh-key $user"
72+
$BIN/v-log-action "$user" "Info" "System" "Added a new SSH key."
7373
log_event "$OK" "$ARGUMENTS"
7474

7575
exit

bin/v-add-user-wp-cli

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ user_exec chmod +x $WPCLI_BIN
6868
#----------------------------------------------------------#
6969

7070
# Logging
71-
$BIN/v-log-action "$user" "Info" "Plugins" "Enabled WP-CLI support."
72-
log_history "Enabled wp-cli for user $user"
71+
$BIN/v-log-action "$user" "Info" "Plugins" "WP-CLI support enabled."
7372
log_event "$OK" "$ARGUMENTS"
7473

7574
exit

bin/v-add-web-domain-alias

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ $BIN/v-restart-proxy $restart
113113
check_result $? "Proxy restart failed" >/dev/null
114114

115115
$BIN/v-log-action "$user" "Info" "Web" "Added new web domain alias (Alias: $aliases, Domain: $domain)."
116-
log_history "added $aliases for $domain"
117116
log_event "$OK" "$ARGUMENTS"
118117

119118
exit

bin/v-add-web-domain-proxy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ $BIN/v-restart-proxy $restart
8686
check_result $? "Proxy restart failed" >/dev/null
8787

8888
$BIN/v-log-action "$user" "Info" "Web" "Proxy Enabled (Domain: $domain)."
89-
log_history "enabled proxy support for $domain"
9089
log_event "$OK" "$ARGUMENTS"
9190

9291
exit

bin/v-add-web-domain-redirect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ if [ "$restart" = "yes" ]; then
115115
fi
116116

117117
# Logging
118-
log_history "Enable forced redirect $domain"
118+
$BIN/v-log-action "$user" "Info" "Web" "Enabled domain redirection (Domain: $domain, Redirect to: $redirect)."
119119
log_event "$OK" "$ARGUMENTS"
120120

121121
exit

bin/v-add-web-php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ cp -f $HESTIA_INSTALL_DIR/php-fpm/multiphp.tpl \
133133

134134
# Logging
135135
$BIN/v-log-action "system" "Info" "System" "Installed PHP $version."
136-
log_history "installed php $version" '' 'admin'
137136
log_event "$OK" "$ARGUMENTS"
138137

139138
exit

bin/v-change-cron-job

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ $BIN/v-restart-cron
8282
check_result $? "Cron restart failed" >/dev/null
8383

8484
# Logging
85-
$BIN/v-log-action "$user" "Info" "Cron Jobs" "Updated a cron job (Job: $job)."
86-
log_history "changed cron job $job"
85+
$BIN/v-log-action "$user" "Info" "Cron Jobs" "Cron job updated (Job: $job, Command: $cmd)."
8786
log_event "$OK" "$ARGUMENTS"
8887

8988
exit

0 commit comments

Comments
 (0)