20 Commits

Author SHA1 Message Date
Tony Murray eeb3d58f5b Improved Logging and Debugging (#8870)
Use Log facility when Laravel is booted.
Update init.php so we can easily boot Laravel for CLI scripts. (and just Eloquent, but that may go away)
Move all debug setup into set_debug() function and use that across all scripts.
Log Laravel database queries.
Send debug output to librenms log file when enabling debug in the webui.
Allow for colorized Log CLI output. (currently will leave % tags in log file output)

** Needs testing and perhaps tweaking still.

DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
2018-07-13 23:08:00 +01:00
Tony Murray 8c639aa5a4 PSR2 Cleanup: /html edition
Travis tests for code conformance. Ignore warnings for now.
Fixed all errors, left most warnings.
2016-08-18 21:29:30 -05:00
David Bell d2db4a4af2 Corrected aggregate graph on smokeping page 2016-03-07 11:40:47 +00:00
laf 6ec525c222 Formatting + scrut updates 2015-07-16 16:01:51 +01:00
laf 7eed295897 Rebased 2015-07-15 20:46:04 +01:00
Job Snijders ebd0f6fc35 Apply "Squiz" code style on old (pre-2014) files 2015-07-11 16:12:35 +02:00
laf e43abbedfa Hopefully final updates for Smokeping integration 2015-06-28 16:20:13 +01:00
Adam Amstrong b5323bad76 fix smokeping graphs (id -> device)
git-svn-id: http://www.observium.org/svn/observer/trunk@3177 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-13 18:59:39 +00:00
Adam Amstrong a12c71df4e quadgraphs -> graphrow
git-svn-id: http://www.observium.org/svn/observer/trunk@3093 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-26 16:49:38 +00:00
Tom Laermans 2667649d3c syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2970 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-06 13:56:23 +00:00
Adam Amstrong 5b9e58ecd4 descriptions on graph page (none created yet)
git-svn-id: http://www.observium.org/svn/observer/trunk@2931 61d68cd4-352d-0410-923a-c4978735b2b8
2012-03-27 16:53:23 +00:00
Adam Amstrong 895f0bce79 improvements to smokeping (averaged graph). needs to ignore NaN values, though.
git-svn-id: http://www.observium.org/svn/observer/trunk@2706 61d68cd4-352d-0410-923a-c4978735b2b8
2011-11-01 13:48:27 +00:00
Adam Amstrong d9ad342748 fix to smokeping
git-svn-id: http://www.observium.org/svn/observer/trunk@2705 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-28 18:37:53 +00:00
Adam Amstrong a60c0fd561 more smokeping
git-svn-id: http://www.observium.org/svn/observer/trunk@2704 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-28 18:29:22 +00:00
Adam Amstrong 3fcf837511 turn ifSpeed into bigint(20). add more sort options to /ports/
git-svn-id: http://www.observium.org/svn/observer/trunk@2702 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-27 09:23:12 +00:00
Tom Laermans ab2668981c Add page title changing infrastructure, do it for device tabs already
git-svn-id: http://www.observium.org/svn/observer/trunk@2690 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-18 14:27:21 +00:00
Tom Laermans a369c442eb syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2643 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-04 14:38:54 +00:00
Tom Laermans c15bfa62a4 syntaxer run + manual cleanup
git-svn-id: http://www.observium.org/svn/observer/trunk@2630 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-01 10:10:02 +00:00
Adam Amstrong b3a19908ab smokeping basic working
git-svn-id: http://www.observium.org/svn/observer/trunk@2622 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-30 19:46:32 +00:00
Adam Amstrong 9df4b3bc0b basic smokeping
git-svn-id: http://www.observium.org/svn/observer/trunk@2620 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-30 19:15:58 +00:00