Commit 106d1e57eca44a16ac891b3eba827135e55a0ce7
Exists in
master
and in
2 other branches
Não insere nova entrada caso já exista um log com os mesmos parâmetros.
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
Controller/PrinterController.php
| ... | ... | @@ -608,6 +608,9 @@ class PrinterController extends Controller |
| 608 | 608 | |
| 609 | 609 | if(empty($counter)) { |
| 610 | 610 | $counter = new PrinterCounter; |
| 611 | + } else { | |
| 612 | + $this->get('logger')->info("Entrada repetida para impressora $printer e data $time"); | |
| 613 | + return true; | |
| 611 | 614 | } |
| 612 | 615 | |
| 613 | 616 | $counter->setPrinter($printer); | ... | ... |