change log
This commit is contained in:
parent
3c5dc19443
commit
eb05e29762
|
@ -35,7 +35,7 @@ return [
|
||||||
],
|
],
|
||||||
'api' => [
|
'api' => [
|
||||||
'local' => true,
|
'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' => [
|
'op' => [
|
||||||
'local' => true,
|
'local' => true,
|
||||||
|
|
|
@ -30,7 +30,7 @@ class BaseServiceProvider extends ServiceProvider
|
||||||
$this->setupConfig();
|
$this->setupConfig();
|
||||||
$this->app->singleton("rpc.logger", function () {
|
$this->app->singleton("rpc.logger", function () {
|
||||||
$config = config('rpc');
|
$config = config('rpc');
|
||||||
$stream = new StreamHandler($this->app->storagePath() . $config['log_path']);
|
$stream = new StreamHandler($config['log_path']);
|
||||||
$stream->setFormatter(new $config['log_formatter']());
|
$stream->setFormatter(new $config['log_formatter']());
|
||||||
$logger = new Logger('RPC.LOGGER');
|
$logger = new Logger('RPC.LOGGER');
|
||||||
return $logger->pushHandler($stream);
|
return $logger->pushHandler($stream);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user