Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write log messages from the daemon to a file #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

NoahAndrews
Copy link

@NoahAndrews NoahAndrews commented Jun 4, 2024

I wrote this code to help me do a high-level look into #20 (unfortunately, that's not something I'm going to be able to fix myself, at least without some guidance).

The CLI has a --log option, but as far as I could tell, the .tsimp/daemon/log file wasn't being written to (though it contained a printed exception on my system, somehow).

This PR makes log operations performed in the daemon get written to the log file rather than stderr, which probably isn't hooked up to anything.

We may want to consider using a proper logging library in the future, as this code doesn't do log rotations or the like.

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