better log messages

This commit is contained in:
Maximilian Keßler 2022-02-19 16:46:08 +01:00
parent 8f46af0ee8
commit 47f5204b66
2 changed files with 7 additions and 5 deletions

View file

@ -340,7 +340,9 @@ class PyTeXBuilder:
def _build(self) -> bool: def _build(self) -> bool:
self._update_config_in_input_folder() self._update_config_in_input_folder()
logger.info("Starting build") logger.info("Starting build of {}".format(
self._build_target_type.value
))
self._load_pytex_files() # 8ms self._load_pytex_files() # 8ms
logger.verbose(f"Found {len(self._pytex_files)} source files") logger.verbose(f"Found {len(self._pytex_files)} source files")
self._init_output_files() # 1ms self._init_output_files() # 1ms

View file

@ -4,10 +4,10 @@ from PyTeX.format.enums import Target
class PyTeXRootDirType(Enum): class PyTeXRootDirType(Enum):
BUILD = 1 BUILD = 'tex distribution'
PYTEX_SOURCE = 2 PYTEX_SOURCE = 'pytex sources'
DOC = 3 DOC = 'documentation'
TEX_SOURCE = 4 TEX_SOURCE = 'tex sources'
def to_target(self) -> Target: def to_target(self) -> Target:
return { return {