Merging upstream version 1.10.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
126166318f
commit
d6fa1559b4
4 changed files with 18 additions and 3 deletions
|
@ -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"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue