From fa560789e27b52a39076c58aa145d5d5e2748a0b Mon Sep 17 00:00:00 2001
From: Jdrezen <jeremie.drezen@gmail.com>
Date: Wed, 19 May 2021 16:21:28 +0200
Subject: [PATCH] Ajout de logs

---
 philosopher_example/controleurPhilosophersExample.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/philosopher_example/controleurPhilosophersExample.py b/philosopher_example/controleurPhilosophersExample.py
index c1c39ba..ff27632 100644
--- a/philosopher_example/controleurPhilosophersExample.py
+++ b/philosopher_example/controleurPhilosophersExample.py
@@ -71,6 +71,7 @@ class ControleurPhilosophersExample(Controleur):
             if state == State.EATING:
                 self.change_color(self.__philosophers[i], 'green')
                 self.increaseValue(self.__chart[0],i, 1)
+                self.logsDisplay('Mr '+str(i)+' : Je mange')
 
             elif state == State.HUNGRY:
                 self.change_color(self.__philosophers[i], 'red')
@@ -90,3 +91,5 @@ class ControleurPhilosophersExample(Controleur):
                 self.change_color(self.__right[i],'black')
             else:
                 self.change_color(self.__right[i],'white')
+
+        self.errorDisplay('Controleur','Non en fait tout va bien')
-- 
GitLab