From eb05e297627cb0aeddfc260d927b3e552de3d506 Mon Sep 17 00:00:00 2001 From: dongwei <838456736@qq.com> Date: Thu, 24 Jan 2019 14:11:50 +0800 Subject: [PATCH] change log --- config/rpc.php | 2 +- src/Providers/BaseServiceProvider.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/rpc.php b/config/rpc.php index 5b859c1..906f90a 100644 --- a/config/rpc.php +++ b/config/rpc.php @@ -35,7 +35,7 @@ return [ ], 'api' => [ 'local' => true, - 'base_uri' => env('RPC_API_URI','http://api.dev.haowumc.com'), + 'base_uri' => env('RPC_API_URI','http://sapi.dev.haowumc.com'), ], 'op' => [ 'local' => true, diff --git a/src/Providers/BaseServiceProvider.php b/src/Providers/BaseServiceProvider.php index f662a43..7a459bd 100644 --- a/src/Providers/BaseServiceProvider.php +++ b/src/Providers/BaseServiceProvider.php @@ -30,7 +30,7 @@ class BaseServiceProvider extends ServiceProvider $this->setupConfig(); $this->app->singleton("rpc.logger", function () { $config = config('rpc'); - $stream = new StreamHandler($this->app->storagePath() . $config['log_path']); + $stream = new StreamHandler($config['log_path']); $stream->setFormatter(new $config['log_formatter']()); $logger = new Logger('RPC.LOGGER'); return $logger->pushHandler($stream);