瀏覽代碼

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

align core service logs
Jean-Robin 1 年之前
父節點
當前提交
2d9a78d593
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 1 0
      taipy/core/_core.py
  2. 2 2
      taipy/core/_orchestrator/_dispatcher/_job_dispatcher.py

+ 1 - 0
taipy/core/_core.py

@@ -61,6 +61,7 @@ class Core:
             self.__class__._is_running = True
             self.__class__._is_running = True
 
 
         self._manage_version_and_block_config()
         self._manage_version_and_block_config()
+        self.__logger.info("Core service started.")
         self.__start_dispatcher(force_restart)
         self.__start_dispatcher(force_restart)
 
 
     def stop(self, wait: bool = True, timeout: Optional[float] = None):
     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)
             self.join(timeout=timeout)
 
 
     def run(self):
     def run(self):
-        self._logger.info("Start job dispatcher...")
+        self._logger.debug("Job dispatcher started.")
         while not self._STOP_FLAG:
         while not self._STOP_FLAG:
             try:
             try:
                 if self._can_execute():
                 if self._can_execute():
@@ -77,7 +77,7 @@ class _JobDispatcher(threading.Thread):
             except Exception as e:
             except Exception as e:
                 self._logger.exception(e)
                 self._logger.exception(e)
                 pass
                 pass
-        self._logger.info("Job dispatcher stopped.")
+        self._logger.debug("Job dispatcher stopped.")
 
 
     def _can_execute(self) -> bool:
     def _can_execute(self) -> bool:
         """Returns True if the dispatcher have resources to execute a new job."""
         """Returns True if the dispatcher have resources to execute a new job."""