Skip to content

Commit

Permalink
Add influx provider timeout functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
brycefranzen committed Jan 16, 2018
1 parent 6a5bb27 commit c8f9664
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/InfluxDBServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function boot()
$this->publishes([
$this->configPath() => config_path('influxdb.php')
]);

$this->mergeConfigFrom($this->configPath(), 'influxdb');

if (config('influxdb.use_monolog_handler') === 'true') {
Expand Down Expand Up @@ -48,7 +48,7 @@ public function register()
config('influxdb.host'),
config('influxdb.port'),
'' //config('influxdb.database')
)
), config('influxdb.timeout')
);
} catch (ClientException $e) {
// die silently
Expand Down
5 changes: 5 additions & 0 deletions src/config/InfluxDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,9 @@
* Use 0 for no limit
*/
'log_message_lines_limit' => env('LARAVEL_INFLUX_PROVIDER_LOG_MESSAGE_LINES_LIMIT', 5),

/**
* Timeout
*/
'timeout' => env('LARAVEL_INFLUX_PROVIDER_TIMEOUT', 0),
];

0 comments on commit c8f9664

Please sign in to comment.