Skip to content

Commit

Permalink
log root_dir and db_path before connection (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlqqq authored Oct 20, 2022
1 parent 1d48ea5 commit 99bd17b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jupyter_server_fileid/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@ def __init__(self, *args, **kwargs):
# initialize instance attrs
self._update_cursor = False
# initialize connection with db
self.con = sqlite3.connect(self.db_path)
self.log.info(f"FileIdManager : Configured root dir: {self.root_dir}")
self.log.info(f"FileIdManager : Configured database path: {self.db_path}")
self.log.info("FileIdManager : Creating File ID tables and indices")
self.con = sqlite3.connect(self.db_path)
self.log.info("FileIdManager : Successfully connected to database file.")
self.log.info("FileIdManager : Creating File ID tables and indices.")
# do not allow reads to block writes. required when using multiple processes
self.con.execute("PRAGMA journal_mode = WAL")
self.con.execute(
Expand Down

0 comments on commit 99bd17b

Please sign in to comment.