You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by wa...@apache.org on 2019/12/11 14:39:18 UTC

[dubbo-php-framework] 04/31: Fix

This is an automated email from the ASF dual-hosted git repository.

wangxin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-php-framework.git

commit 30c9b5ef3f4a1273deaf483dfc10f7ff43a74607
Author: pengmingming <pe...@fenqile.com>
AuthorDate: Thu Jul 5 15:17:54 2018 +0800

    Fix
---
 bin/app_admin.php | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/bin/app_admin.php b/bin/app_admin.php
index 13e6dc2..131ca6b 100644
--- a/bin/app_admin.php
+++ b/bin/app_admin.php
@@ -92,11 +92,14 @@ else
     echo "--------app_admin.php $cmd--------".PHP_EOL;
 }
 
-$config = FSOFConfigManager::getProviderAppDeploy($name);
-if(isset($config['server']['log_cfg_file_path']) && !empty($config['server']['log_cfg_file_path']))
+if (!empty($name))
 {
-    \Logger::configure($config['server']['log_cfg_file_path']);
-    date_default_timezone_set('PRC');
+	$config = FSOFConfigManager::getProviderAppDeploy($name);
+	if(isset($config['server']['log_cfg_file_path']) && !empty($config['server']['log_cfg_file_path']))
+	{
+		\Logger::configure($config['server']['log_cfg_file_path']);
+		date_default_timezone_set('PRC');
+	}
 }
 
 //执行所有的控制命令