Skip to content

Move logger setup to after MODE selection#126

Open
nickdavies wants to merge 1 commit intoldayton:mainfrom
nickdavies:log_path
Open

Move logger setup to after MODE selection#126
nickdavies wants to merge 1 commit intoldayton:mainfrom
nickdavies:log_path

Conversation

@nickdavies
Copy link
Copy Markdown
Contributor

Because we call setup_logging before deciding on the mode the log file is always .claude/hook-approvals.log even for cursor

This split the logger setup in two, first we do basic logging setup with the right format etc so that we don't lose messages related to parsing input and setup and then once we know the mode we are in we call the file logger.

Because we call `setup_logging` before deciding on the mode the log file
is always `.claude/hook-approvals.log` even for cursor

This split the logger setup in two, first we do basic logging setup with
the right format etc so that we don't lose messages related to parsing
input and setup and then once we know the mode we are in we call the
file logger.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant