Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
AAriam committed Aug 27, 2024
1 parent 27c24c1 commit 4e569d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespaces = true
# ----------------------------------------- Project Metadata -------------------------------------
#
[project]
version = "0.0.0.dev10"
version = "0.0.0.dev11"
name = "LoggerMan"
dependencies = [
"markitup",
Expand Down
5 changes: 1 addition & 4 deletions src/loggerman/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,6 @@ def initialize(
}
self._symbol_caller = caller_symbol

if self._output_html_filepath:
self._output_html_filepath.parent.mkdir(parents=True, exist_ok=True)
self._output_html_filepath.touch(exist_ok=True)

self._curr_section = ""

self._open_grouped_sections = 0
Expand All @@ -174,6 +170,7 @@ def initialize(
self._html_file_end = "</body>\n</html>\n"
self._html_num_chars_at_end = -len(self._html_file_end)
if self._realtime and self._output_html_filepath:
self._output_html_filepath.parent.mkdir(parents=True, exist_ok=True)
with open(self._output_html_filepath, 'w') as f:
f.write(f"{self._log_html}{self._html_file_end}")
self._initialized = True
Expand Down

0 comments on commit 4e569d3

Please sign in to comment.