Skip to content

Commit

Permalink
fix: arquivo log
Browse files Browse the repository at this point in the history
  • Loading branch information
bgastaldi committed Sep 6, 2021
1 parent 8137428 commit 121bc7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helpers/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function zipFileLog(string $path): bool
{

$filename = (date('Ymd') - 1);
if (!file_exists($path . '/' . $filename . '.zip')) :
if (!file_exists($path . '/' . $filename . '.zip') and file_exists($path . '/' . $filename . '.log')) :
$zip = new ZipArchive();
$zip->open($path . '/' . $filename . '.zip', ZipArchive::CREATE | ZipArchive::OVERWRITE);
$zip->addFile($path . '/' . $filename . '.log');
Expand Down

0 comments on commit 121bc7d

Please sign in to comment.