diff --git a/app/Console/Commands/V2/ProcessYDPortalDataV2Command.php b/app/Console/Commands/V2/ProcessYDPortalDataV2Command.php index dd8163a7..f00eefb1 100644 --- a/app/Console/Commands/V2/ProcessYDPortalDataV2Command.php +++ b/app/Console/Commands/V2/ProcessYDPortalDataV2Command.php @@ -72,6 +72,10 @@ class ProcessYDPortalDataV2Command extends Command $count = 0; for ($x = $from; $x <= $to; $x++) { + if ($count >= 2) { + break; + } + $startDate = Carbon::today()->subDays($x); $startLimit = Carbon::parse('01-12-2021'); diff --git a/config/logging.php b/config/logging.php index e9fbad04..6cc31d7c 100644 --- a/config/logging.php +++ b/config/logging.php @@ -73,7 +73,7 @@ return [ 'secret' => env('AWS_CW_SECRET') ] ], - 'retention' => 3, //cief todo: retention to be updated + 'retention' => env('APP_ENV') === 'production' ? 90 : 3, 'level' => 'debug', 'groupNamePrefix' => env('CLOUDWATCH_LOGGROUP_PREFIX'), ], @@ -144,7 +144,7 @@ return [ 'secret' => env('AWS_CW_SECRET') ] ], - 'retention' => 3, //cief todo: retention to be updated + 'retention' => env('APP_ENV') === 'production' ? 90 : 3, 'level' => 'debug', 'groupNamePrefix' => env('CLOUDWATCH_LOGGROUP_PREFIX'), ], @@ -168,7 +168,7 @@ return [ 'secret' => env('AWS_CW_SECRET') ] ], - 'retention' => 3, //cief todo: retention to be updated + 'retention' => env('APP_ENV') === 'production' ? 90 : 3, 'level' => 'debug', 'groupNamePrefix' => env('CLOUDWATCH_LOGGROUP_PREFIX'), ], @@ -192,7 +192,7 @@ return [ 'secret' => env('AWS_CW_SECRET') ] ], - 'retention' => 3, //cief todo: retention to be updated + 'retention' => env('APP_ENV') === 'production' ? 90 : 3, 'level' => 'debug', 'groupNamePrefix' => env('CLOUDWATCH_LOGGROUP_PREFIX'), ], @@ -217,7 +217,7 @@ return [ 'secret' => env('AWS_CW_SECRET') ] ], - 'retention' => 3, //cief todo: retention to be updated + 'retention' => env('APP_ENV') === 'production' ? 90 : 3, 'level' => 'debug', 'groupNamePrefix' => env('CLOUDWATCH_LOGGROUP_PREFIX'), ], @@ -241,7 +241,7 @@ return [ 'secret' => env('AWS_CW_SECRET') ] ], - 'retention' => 3, //cief todo: retention to be updated + 'retention' => env('APP_ENV') === 'production' ? 90 : 3, 'level' => 'debug', 'groupNamePrefix' => env('CLOUDWATCH_LOGGROUP_PREFIX'), ],