Skip to content

Commit

Permalink
chore: remove excess logging and fix bin deletion time logic
Browse files Browse the repository at this point in the history
  • Loading branch information
pgautier404 committed Oct 18, 2023
1 parent 66ce50f commit 4ca79fa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/MomentoCacheBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function set($cid, $data, $expire = CacheBackendInterface::CACHE_PERMANEN
$this->log("SET response error for bin $this->bin: " . $setResponse->asError()->message());
} else {
$this->stopStopwatch(
$start, "SET cid $cid in bin $this->bin with ttl $ttl (real cid = " .$this->getCidForBin($cid) . ")"
$start, "SET cid $cid in bin $this->bin with ttl $ttl"
);
}
}
Expand Down Expand Up @@ -261,8 +261,8 @@ private function ensureLastBinDeletionTimeIsSet() {
$this->log(
"ERROR getting last deletion time for bin $this->bin: " . $getRequest->asError()->message()
);
$this->setLastBinDeletionTime();
} elseif ($getRequest->asMiss()) {
$this->log("Setting last deletion time for $this->bin");
$this->setLastBinDeletionTime();
} else {
$this->lastBinDeletionTime = intval($getRequest->asHit()->valueString());
Expand All @@ -277,8 +277,6 @@ private function setLastBinDeletionTime() {
$this->log(
"ERROR getting last deletion time for bin $this->bin: " . $setRequest->asError()->message()
);
} else {
$this->Log("Set last deletion time for $this->bin to $this->lastBinDeletionTime");
}
}
}

0 comments on commit 4ca79fa

Please sign in to comment.