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

Logging (user/log.txt): Exceptions during init aren't logged #488

Closed
SimonN opened this issue Apr 26, 2024 · 1 comment
Closed

Logging (user/log.txt): Exceptions during init aren't logged #488

SimonN opened this issue Apr 26, 2024 · 1 comment
Labels

Comments

@SimonN
Copy link
Owner

SimonN commented Apr 26, 2024

Lix 0.10.22

  1. Delete ./data/images/lixrecol.png or put the 0.10.22 binary in a 0.9.47 tree.
  2. Run Lix.
  3. The missing image from step 1 produces a runtime exception during initialization (i.e., before the main loop) that prevents Lix from running normally.
  4. Observe Lix terminate. If you have a shell, observe the exception on stderr.
  5. Look in the log file ./user/log.txt.

Expected: The log file shows the exception from step 4.

Instead: The log file doesn't show this error.

The logging system inits only after A5 initializes. Let's init the logging earlier. Write a try-catch-all clause around the init code.

@SimonN SimonN added the 3-bug label Apr 26, 2024
@SimonN
Copy link
Owner Author

SimonN commented Apr 27, 2024

I'll fix this in Lix 0.10.23.

@SimonN SimonN closed this as completed Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant