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:
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
logger.verbose(f"Found {len(self._pytex_files)} source files")
self._init_output_files() # 1ms

View file

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