Found and fixed a bug in ErrorHandler, canShowPerformanceIndicators.
It didn't work with CIDR format IP addresses. I cannabilized the code from canShowDebug and refactored it into its own method, canShowBasedOnIP. Both canShowDebug and canShowPerformanceIndicators call this. Updated the docs for the debugIp setting to note that it's used for both showDebug and showPerformanceIndicators. Added about 20 more tests to ErrorHandler.t. Only the two hard methods are left, fatal (which closes the session at the end) and showDebug, which is validating a ton of output.
This commit is contained in:
parent
1d7446c500
commit
a0d2326f9c
4 changed files with 157 additions and 23 deletions
|
|
@ -83,8 +83,8 @@ our $I18N = {
|
|||
},
|
||||
|
||||
'debug ip description' => {
|
||||
message => q|This will limit debugging output to a specific IP address or IP range. Enter the subnet that you want to be able to view debug output in CIDR format. For example: 10.0.0.0/24. Multiple CIDR addresses may be entered, separated by commas.|,
|
||||
lastUpdated => 1139948380
|
||||
message => q|This will limit debugging and/or performance output to a specific IP address or IP range. Enter the subnet that you want to be able to view debug output in CIDR format. For example: 10.0.0.0/24. Multiple CIDR addresses may be entered, separated by commas.|,
|
||||
lastUpdated => 1164055466
|
||||
},
|
||||
|
||||
'debug ip' => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue