From b5495ed0c348f65ea83d9de7a1d5068310146705 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 21 Apr 2015 01:14:10 -0400 Subject: [PATCH] use helper functions instead of echo command --- plugins/domains/commands | 2 +- plugins/nginx-vhosts/commands | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/domains/commands b/plugins/domains/commands index 950ee2415..282d1eb65 100755 --- a/plugins/domains/commands +++ b/plugins/domains/commands @@ -45,7 +45,7 @@ case "$1" in VHOST=$(< "$DOKKU_ROOT/HOSTNAME") fi if [[ "$VHOST" =~ $RE_IPV4 ]] || [[ "$VHOST" =~ $RE_IPV6 ]];then - echo "unsupported vhost config found. disabling vhost support" + dokku_log_info2 "unsupported vhost config found. disabling vhost support" dokku config:set-norestart $APP NO_VHOST=1 else if [[ -f "$DOKKU_ROOT/VHOST" ]]; then diff --git a/plugins/nginx-vhosts/commands b/plugins/nginx-vhosts/commands index 13e601cdf..84ca6d895 100755 --- a/plugins/nginx-vhosts/commands +++ b/plugins/nginx-vhosts/commands @@ -97,7 +97,7 @@ EOF dokku_log_info1 "Running nginx-pre-reload" pluginhook nginx-pre-reload $APP $DOKKU_APP_LISTEN_PORT $DOKKU_APP_LISTEN_IP - echo " Reloading nginx" + dokku_log_verbose "Reloading nginx" restart_nginx fi