Skip to content

Commit 695683f

Browse files
committed
Updated test condition; log messages
1 parent 4611b4e commit 695683f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ShowPulseBase.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?php
22

33
namespace App;
4+
45
use Exception;
56

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";
89
require_once $commonFile;
910

1011
abstract class ShowPulseBase

ShowPulseWorker.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function fifteenMinutesAgo()
5959
public function logFailure($exceptionMessage)
6060
{
6161
if ($this->isBelowMaxFailureThreshold()) {
62-
$message = $exceptionMessage . " (Failure " . $this->failureCount . "/" > $this->maxFailuresAllowedValue() . ")";
62+
$message = $exceptionMessage . " (Attempt " . $this->failureCount . ")";
6363
$this->logError($message);
6464
}
6565
}

0 commit comments

Comments
 (0)