Sfoglia il codice sorgente

[backend] Cron : ajustement log level

refactoring
parent
commit
707105bceb
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +1
    -1
      backend/config/main.php
  2. +1
    -1
      backend/controllers/CronController.php

+ 1
- 1
backend/config/main.php Vedi File

@@ -54,7 +54,7 @@ return [
'modules' => [],
'components' => [
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'traceLevel' => YII_DEBUG ? 3 : 1,
'targets' => [
[
'class' => 'yii\log\FileTarget',

+ 1
- 1
backend/controllers/CronController.php Vedi File

@@ -231,7 +231,7 @@ class CronController extends BackendController
}
if($producer->active) {
Yii::info($producer->name.' : Distribution du '.$date.', '.count($arrayOrders).' commande(s) enregistrée(s), '.$countOrders.' commande(s) payée(s), '.($mailOrdersSend ? 'Récapitulatif de commandes envoyé' : 'Aucun email envoyé'), 'cron-process-orders') ;
Yii::error($producer->name.' : Distribution du '.$date.', '.count($arrayOrders).' commande(s) enregistrée(s), '.$countOrders.' commande(s) payée(s), '.($mailOrdersSend ? 'Récapitulatif de commandes envoyé' : 'Aucun email envoyé'), 'cron-process-orders') ;
}
}
}

Loading…
Annulla
Salva