Skip to content

Commit

Permalink
Added warning when no server sections are defined
Browse files Browse the repository at this point in the history
  • Loading branch information
alfiopuglisi committed Jul 24, 2024
1 parent 27d94e5 commit 2b686f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plico/utils/process_monitor_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ def _setup(self):
raise

sections = self._configuration.numberedSectionList(prefix=self._prefix)

if len(sections) == 0:
self._logger.warn(f'No sections with prefix {self._prefix} defined!')

for section in sections:
self._spawnController(self._server_process_name, section)
time.sleep(delay)
Expand Down

0 comments on commit 2b686f7

Please sign in to comment.