Skip to content

Commit

Permalink
Create workspace directory before logging server
Browse files Browse the repository at this point in the history
  • Loading branch information
vodorok committed Apr 14, 2023
1 parent 86b5e39 commit ed276e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/server/codechecker_server/cmd/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,12 @@ def main(args):
else None
)

# Create workspace directory before logging is initialized.
if workspace and not os.path.exists(args.config_directory):
LOG.info("Creating non existing config directory: %s",
args.config_directory)
os.makedirs(args.config_directory)

with logger.LOG_CFG_SERVER(
args.verbose if "verbose" in args else None, workspace=workspace
):
Expand Down

0 comments on commit ed276e5

Please sign in to comment.