Skip to content

Commit

Permalink
Fix logging too much (librenms#9824)
Browse files Browse the repository at this point in the history
* Fix logging
Also mark all the files in config as non-editable

* Set the proper default logging levels
  • Loading branch information
murrant authored Feb 14, 2019
1 parent 0b802d6 commit 108348e
Show file tree
Hide file tree
Showing 19 changed files with 156 additions and 4 deletions.
8 changes: 8 additions & 0 deletions config/app.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
| !!!! DO NOT EDIT THIS FILE !!!!
|
| You can change settings by setting them in the environment or .env
| If there is something you need to change, but is not available as an environment setting,
| request an environment variable to be created upstream or send a pull request.
*/

return [

/*
Expand Down
8 changes: 8 additions & 0 deletions config/auth.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
| !!!! DO NOT EDIT THIS FILE !!!!
|
| You can change settings by setting them in the environment or .env
| If there is something you need to change, but is not available as an environment setting,
| request an environment variable to be created upstream or send a pull request.
*/

return [

/*
Expand Down
8 changes: 8 additions & 0 deletions config/broadcasting.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
| !!!! DO NOT EDIT THIS FILE !!!!
|
| You can change settings by setting them in the environment or .env
| If there is something you need to change, but is not available as an environment setting,
| request an environment variable to be created upstream or send a pull request.
*/

return [

/*
Expand Down
8 changes: 8 additions & 0 deletions config/cache.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
| !!!! DO NOT EDIT THIS FILE !!!!
|
| You can change settings by setting them in the environment or .env
| If there is something you need to change, but is not available as an environment setting,
| request an environment variable to be created upstream or send a pull request.
*/

use Illuminate\Support\Str;

return [
Expand Down
8 changes: 8 additions & 0 deletions config/database.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
| !!!! DO NOT EDIT THIS FILE !!!!
|
| You can change settings by setting them in the environment or .env
| If there is something you need to change, but is not available as an environment setting,
| request an environment variable to be created upstream or send a pull request.
*/

use LibreNMS\Config;

$fallback_db_config = Config::getDatabaseSettings();
Expand Down
8 changes: 8 additions & 0 deletions config/debugbar.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
| !!!! DO NOT EDIT THIS FILE !!!!
|
| You can change settings by setting them in the environment or .env
| If there is something you need to change, but is not available as an environment setting,
| request an environment variable to be created upstream or send a pull request.
*/

return [

/*
Expand Down
8 changes: 8 additions & 0 deletions config/filesystems.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
| !!!! DO NOT EDIT THIS FILE !!!!
|
| You can change settings by setting them in the environment or .env
| If there is something you need to change, but is not available as an environment setting,
| request an environment variable to be created upstream or send a pull request.
*/

return [

/*
Expand Down
8 changes: 8 additions & 0 deletions config/hashing.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
| !!!! DO NOT EDIT THIS FILE !!!!
|
| You can change settings by setting them in the environment or .env
| If there is something you need to change, but is not available as an environment setting,
| request an environment variable to be created upstream or send a pull request.
*/

return [

/*
Expand Down
8 changes: 8 additions & 0 deletions config/librenms.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
| !!!! DO NOT EDIT THIS FILE !!!!
|
| You can change settings by setting them in the environment or .env
| If there is something you need to change, but is not available as an environment setting,
| request an environment variable to be created upstream or send a pull request.
*/

return [

/*
Expand Down
17 changes: 13 additions & 4 deletions config/logging.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
| !!!! DO NOT EDIT THIS FILE !!!!
|
| You can change settings by setting them in the environment or .env
| If there is something you need to change, but is not available as an environment setting,
| request an environment variable to be created upstream or send a pull request.
*/

use Monolog\Handler\StreamHandler;
use Monolog\Handler\SyslogUdpHandler;

Expand Down Expand Up @@ -36,26 +44,26 @@
'channels' => [
'logfile' => [
'driver' => 'stack',
'channels' => ['daily'],
'channels' => ['single'],
'ignore_exceptions' => false,
],

'console' => [
'driver' => 'stack',
'channels' => ['daily', 'stderr'],
'channels' => ['single', 'stderr'],
'ignore_exceptions' => false,
],

'single' => [
'driver' => 'single',
'path' => env('APP_LOG', \LibreNMS\Config::get('log_file', base_path('logs/librenms.log'))),
'level' => 'debug',
'level' => 'error',
],

'daily' => [
'driver' => 'daily',
'path' => env('APP_LOG', \LibreNMS\Config::get('log_file', base_path('logs/librenms.log'))),
'level' => 'debug',
'level' => 'error',
'days' => 14,
],

Expand Down Expand Up @@ -84,6 +92,7 @@
'with' => [
'stream' => 'php://stderr',
],
'level' => 'debug',
],

'syslog' => [
Expand Down
8 changes: 8 additions & 0 deletions config/mail.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
| !!!! DO NOT EDIT THIS FILE !!!!
|
| You can change settings by setting them in the environment or .env
| If there is something you need to change, but is not available as an environment setting,
| request an environment variable to be created upstream or send a pull request.
*/

return [

/*
Expand Down
7 changes: 7 additions & 0 deletions config/queue.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<?php

/*
| !!!! DO NOT EDIT THIS FILE !!!!
|
| You can change settings by setting them in the environment or .env
| If there is something you need to change, but is not available as an environment setting,
| request an environment variable to be created upstream or send a pull request.
*/
return [

/*
Expand Down
8 changes: 8 additions & 0 deletions config/services.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
| !!!! DO NOT EDIT THIS FILE !!!!
|
| You can change settings by setting them in the environment or .env
| If there is something you need to change, but is not available as an environment setting,
| request an environment variable to be created upstream or send a pull request.
*/

return [

/*
Expand Down
8 changes: 8 additions & 0 deletions config/session.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
| !!!! DO NOT EDIT THIS FILE !!!!
|
| You can change settings by setting them in the environment or .env
| If there is something you need to change, but is not available as an environment setting,
| request an environment variable to be created upstream or send a pull request.
*/

use Illuminate\Support\Str;

return [
Expand Down
8 changes: 8 additions & 0 deletions config/snmptraps.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
| !!!! DO NOT EDIT THIS FILE !!!!
|
| You can change settings by setting them in the environment or .env
| If there is something you need to change, but is not available as an environment setting,
| request an environment variable to be created upstream or send a pull request.
*/

return [
'trap_handlers' => [
'SNMPv2-MIB::authenticationFailure' => \LibreNMS\Snmptrap\Handlers\AuthenticationFailure::class,
Expand Down
8 changes: 8 additions & 0 deletions config/tinker.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
| !!!! DO NOT EDIT THIS FILE !!!!
|
| You can change settings by setting them in the environment or .env
| If there is something you need to change, but is not available as an environment setting,
| request an environment variable to be created upstream or send a pull request.
*/

return [

/*
Expand Down
8 changes: 8 additions & 0 deletions config/toastr.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
| !!!! DO NOT EDIT THIS FILE !!!!
|
| You can change settings by setting them in the environment or .env
| If there is something you need to change, but is not available as an environment setting,
| request an environment variable to be created upstream or send a pull request.
*/

return [
'options' => []
];
8 changes: 8 additions & 0 deletions config/trustedproxy.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
| !!!! DO NOT EDIT THIS FILE !!!!
|
| You can change settings by setting them in the environment or .env
| If there is something you need to change, but is not available as an environment setting,
| request an environment variable to be created upstream or send a pull request.
*/

return [

/*
Expand Down
8 changes: 8 additions & 0 deletions config/view.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
| !!!! DO NOT EDIT THIS FILE !!!!
|
| You can change settings by setting them in the environment or .env
| If there is something you need to change, but is not available as an environment setting,
| request an environment variable to be created upstream or send a pull request.
*/

return [

/*
Expand Down

0 comments on commit 108348e

Please sign in to comment.