Logger: File backend can completely break if log file is not writable #210
Labels
No labels
bug
confirmed
critical
discussion
documentation
Doing
enhancement
experiment
suggestion
support
Testing
To Do
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: hazaar/framework#210
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I think application logging needs to be revisited urgently as I've come across a couple of problems.
The main issue is, if the log file is not writable, then lots of errors get thrown. This is because the private member variables for the
Hazaar\Logger\Backend\File
class are messed up. Basically thehLog
andhErr
variables are never defined explicitly. They are defined implicitly when the logger starts up. The main issue here is we do a fileis_writable()
check before doing so and if the file can not be written to, the variables are never defined.Updates:
created merge request !119 to address this issue
mentioned in merge request !119
Looks like most of this was fixed up in 87755cd72271a1c0ba2c54ebf38133fe9bf5310f outside of any branch. Need to stop doing that!!! (I have 😄)
Just testing and confirming things. Looks like the exception I'm now throwing is messing with error stylesheets.
mentioned in commit 44cfeb4098b201a08e195e414476043637a047eb
mentioned in commit ca5d6aed697ebfa58eb27a3ba4fe79b0b05cdd54