Browse Source

[backend] Cron : ajustement log level

refactoring
Guillaume Bourgeois 5 years ago
parent
commit
707105bceb
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      backend/config/main.php
  2. +1
    -1
      backend/controllers/CronController.php

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

'modules' => [], 'modules' => [],
'components' => [ 'components' => [
'log' => [ 'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'traceLevel' => YII_DEBUG ? 3 : 1,
'targets' => [ 'targets' => [
[ [
'class' => 'yii\log\FileTarget', 'class' => 'yii\log\FileTarget',

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

} }
if($producer->active) { 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…
Cancel
Save