remove debug lines
This commit is contained in:
parent
6a6c3445fa
commit
93a99b561c
|
@ -43,14 +43,6 @@ class Usage extends Event
|
|||
*/
|
||||
public function addMetric(string $key, int $value): self
|
||||
{
|
||||
//Todo debug (to be removed later @shimon)
|
||||
// if ($key === 'users') {
|
||||
// if ($value < 0) {
|
||||
// console::log('@negative=' . $value);
|
||||
// } else {
|
||||
// console::log('@positive=' . $value);
|
||||
// }
|
||||
// }
|
||||
$this->metrics[] = [
|
||||
'key' => $key,
|
||||
'value' => $value,
|
||||
|
|
|
@ -86,11 +86,6 @@ class UsageDump extends Action
|
|||
]));
|
||||
} catch (Duplicate $th) {
|
||||
if ($value < 0) {
|
||||
//Todo debug (to be removed later @shimon)
|
||||
// var_dump([
|
||||
// 'id' => $time . '_' . $period . '_' . $key,
|
||||
// 'value' => $value,
|
||||
// ]);
|
||||
$dbForProject->decreaseDocumentAttribute(
|
||||
'stats_v2',
|
||||
$id,
|
||||
|
|
Loading…
Reference in a new issue