Commit 695683f 1 parent 4611b4e commit 695683f Copy full SHA for 695683f
File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
namespace App ;
4
+
4
5
use Exception ;
5
6
6
- $ testing = true ;
7
- $ commonFile = $ testing ? " /opt/fpp/www/common .php " : __DIR__ . " /tests/OptFppWwwCommonMock .php " ;
7
+ $ testing = false ;
8
+ $ commonFile = $ testing ? __DIR__ . " /tests/OptFppWwwCommonMock .php " : " /opt/fpp/www/common .php " ;
8
9
require_once $ commonFile ;
9
10
10
11
abstract class ShowPulseBase
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public function fifteenMinutesAgo()
59
59
public function logFailure ($ exceptionMessage )
60
60
{
61
61
if ($ this ->isBelowMaxFailureThreshold ()) {
62
- $ message = $ exceptionMessage . " (Failure " . $ this ->failureCount . " / " > $ this -> maxFailuresAllowedValue () . ") " ;
62
+ $ message = $ exceptionMessage . " (Attempt " . $ this ->failureCount . ") " ;
63
63
$ this ->logError ($ message );
64
64
}
65
65
}
You can’t perform that action at this time.
0 commit comments