Skip to content

Commit

Permalink
Replace tabs with spaces & remove side-effects
Browse files Browse the repository at this point in the history
I suggest that the config disables queue and logging by default to prevent accidental side-effects
  • Loading branch information
JoelESvensson committed Oct 24, 2016
1 parent 0cef3a0 commit 0995ec5
Showing 1 changed file with 28 additions and 33 deletions.
61 changes: 28 additions & 33 deletions src/config/InfluxDB.php
Original file line number Diff line number Diff line change
@@ -1,45 +1,40 @@
<?php

return [
/**
* Protocol could take values 'http', 'https', 'udp'
*/
'protocol' => env('LARAVEL_INFLUX_PROVIDER_PROTOCOL', 'http'),

'user' => env('LARAVEL_INFLUX_PROVIDER_USER', 'admin'),

'password' => env('LARAVEL_INFLUX_PROVIDER_PASSWORD', 'qwe123'),

'host' => env('LARAVEL_INFLUX_PROVIDER_HOST', 'localhost'),

'port' => env('LARAVEL_INFLUX_PROVIDER_PORT', '8086'),
/**
* Protocol could take values 'http', 'https', 'udp'
*/
'protocol' => env('LARAVEL_INFLUX_PROVIDER_PROTOCOL', 'http'),
'user' => env('LARAVEL_INFLUX_PROVIDER_USER', ''),
'password' => env('LARAVEL_INFLUX_PROVIDER_PASSWORD', ''),
'host' => env('LARAVEL_INFLUX_PROVIDER_HOST', 'localhost'),
'port' => env('LARAVEL_INFLUX_PROVIDER_PORT', '8086'),
'database' => env('LARAVEL_INFLUX_PROVIDER_DATABASE', 'main'),

'database' => env('LARAVEL_INFLUX_PROVIDER_DATABASE', 'main'),

/**
* Use Queue for sending to InfluxDB, if 'true'
*/
'use_queue' => env('LARAVEL_INFLUX_PROVIDER_USE_QUEUE', 'true'),
/**
* Use Queue for sending to InfluxDB, if 'true'
*/
'use_queue' => env('LARAVEL_INFLUX_PROVIDER_USE_QUEUE', 'false'),

/**
* Queue name
*/
'queue_name' => env('LARAVEL_INFLUX_PROVIDER_QUEUE_NAME', 'influx'),

/**
* Use InfluxDB for error/exception collector if 'true'
*/
'use_monolog_handler' => env('LARAVEL_INFLUX_PROVIDER_USE_MONOLOG_HANDLER', 'true'),

/**
* Logging level should take one of the given values:
* 'DEBUG', 'INFO', 'NOTICE', 'WARNING', 'ERROR', 'CRITICAL', 'ALERT', 'EMERGENCY'
*/
'logging_level' => env('LARAVEL_INFLUX_PROVIDER_LOGGING_LEVEL', 'NOTICE'),
/**
* Use InfluxDB for error/exception collector if 'true'
*/
'use_monolog_handler' => env('LARAVEL_INFLUX_PROVIDER_USE_MONOLOG_HANDLER', 'false'),

/**
* Log field fields.Debug.message will be trimmed to given value of lines.
* Use 0 for no limit
*/
'log_message_lines_limit' => env('LARAVEL_INFLUX_PROVIDER_LOG_MESSAGE_LINES_LIMIT', 5),
/**
* Logging level should take one of the given values:
* 'DEBUG', 'INFO', 'NOTICE', 'WARNING', 'ERROR', 'CRITICAL', 'ALERT', 'EMERGENCY'
*/
'logging_level' => env('LARAVEL_INFLUX_PROVIDER_LOGGING_LEVEL', 'NOTICE'),

/**
* Log field fields.Debug.message will be trimmed to given value of lines.
* Use 0 for no limit
*/
'log_message_lines_limit' => env('LARAVEL_INFLUX_PROVIDER_LOG_MESSAGE_LINES_LIMIT', 5),
];

0 comments on commit 0995ec5

Please sign in to comment.