Skip to content

Commit

Permalink
Make log work
Browse files Browse the repository at this point in the history
  • Loading branch information
MBSck committed Feb 23, 2024
1 parent 2cf5ce8 commit 208f073
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions p2obp/backend/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@
log=log, resolution=resolution, photometry=photometry,
w0=w0, dit=dit, constraints=constraints, catalogs=catalogs)


OPTIONS.log.path.mkdir(parents=True, exist_ok=True)
with open(OPTIONS.log.path / "p2obp.log", "w+") as log_file:
log_file.write("Start of log:")

logging.basicConfig(filename=OPTIONS.log.path / "p2obp.log",
filemode="w", level=OPTIONS.log.level,
format=OPTIONS.log.format)

0 comments on commit 208f073

Please # to comment.