Skip to content

Commit

Permalink
Fix creation of ~/sky_logging/{timestamp} under dir running sky c…
Browse files Browse the repository at this point in the history
…ommands (#2667)

* fix

* change position
  • Loading branch information
cblmemo authored Oct 5, 2023
1 parent 4e227ce commit 491701c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sky/provision/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class _LoggingConfig(threading.local):
def setup_provision_logging(log_dir: str):
try:
# Redirect underlying provision logs to file.
log_path = os.path.join(log_dir, 'provision.log')
log_path = os.path.expanduser(os.path.join(log_dir, 'provision.log'))
os.makedirs(os.path.dirname(log_path), exist_ok=True)
log_abs_path = pathlib.Path(log_path).expanduser().absolute()
fh = logging.FileHandler(log_abs_path)
Expand Down

0 comments on commit 491701c

Please sign in to comment.