1
0
Эх сурвалжийг харах

Merge pull request #915 from ooooo-create/fix/#803-align-core-service-logs

align core service logs
Jean-Robin 1 жил өмнө
parent
commit
2d9a78d593

+ 1 - 0
taipy/core/_core.py

@@ -61,6 +61,7 @@ class Core:
             self.__class__._is_running = True
 
         self._manage_version_and_block_config()
+        self.__logger.info("Core service started.")
         self.__start_dispatcher(force_restart)
 
     def stop(self, wait: bool = True, timeout: Optional[float] = None):

+ 2 - 2
taipy/core/_orchestrator/_dispatcher/_job_dispatcher.py

@@ -61,7 +61,7 @@ class _JobDispatcher(threading.Thread):
             self.join(timeout=timeout)
 
     def run(self):
-        self._logger.info("Start job dispatcher...")
+        self._logger.debug("Job dispatcher started.")
         while not self._STOP_FLAG:
             try:
                 if self._can_execute():
@@ -77,7 +77,7 @@ class _JobDispatcher(threading.Thread):
             except Exception as e:
                 self._logger.exception(e)
                 pass
-        self._logger.info("Job dispatcher stopped.")
+        self._logger.debug("Job dispatcher stopped.")
 
     def _can_execute(self) -> bool:
         """Returns True if the dispatcher have resources to execute a new job."""