1
0
Fork 0

Merging upstream version 1.10.1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-09 17:52:51 +01:00
parent 126166318f
commit d6fa1559b4
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
4 changed files with 18 additions and 3 deletions

View file

@ -239,7 +239,11 @@ class LiteCli(object):
log_file = self.config["main"]["log_file"]
if log_file == "default":
log_file = config_location() + "log"
ensure_dir_exists(log_file)
try:
ensure_dir_exists(log_file)
except OSError:
# Unable to create log file, log to temp directory instead.
log_file = "/tmp/litecli.log"
log_level = self.config["main"]["log_level"]