Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Update Sync.php
Browse files Browse the repository at this point in the history
  • Loading branch information
arrilot authored Apr 13, 2018
1 parent c973992 commit ca22de1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ public function emailFinalLogTo($emails)
* Удаляет все логи старше чем $days дней.
*
* @param $days
* @return $this
*/
public function cleanOldLogs($days = 30)
{
Expand All @@ -323,6 +324,8 @@ public function cleanOldLogs($days = 30)
unlink($this->logDir . '/' . $file->getFilename());
}
}

return $this;
}

/**
Expand Down

0 comments on commit ca22de1

Please sign in to comment.