Skip to content

Commit

Permalink
hotfix for no logging permissions in docker (#835)
Browse files Browse the repository at this point in the history
* hotfix for no logging permissions in docker

* fix version
  • Loading branch information
pascal-pfeiffer authored Aug 19, 2024
1 parent 6a0282a commit a51c3f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion llm_studio/src/utils/logging_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ def initialize_logging(cfg: Optional[Any] = None):
os.makedirs(logs_dir, exist_ok=True)
file_handler = logging.FileHandler(filename=f"{logs_dir}/logs.log")
else:
file_handler = logging.FileHandler(filename="h2o_llmstudio.log")
try:
file_handler = logging.FileHandler(filename="h2o_llmstudio.log")
except PermissionError:
file_handler = None

if file_handler is not None:
file_handler.addFilter(IgnorePatchRequestsFilter())
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "h2o-llmstudio"
version = "1.12.0-dev"
version = "1.11.1"
readme = "README.md"
license = {file = "LICENSE"}

Expand Down

0 comments on commit a51c3f3

Please sign in to comment.