Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX Don't write log buffer without db
This can happen during unit test execution. I've removed the manual flushing in d0acfad which caused this. But regardless of this change, there could be additional messages added to the logger after this manual flush which then result in the same situation. So the safest way is to check the log handler is actually in a state to write log messages. This will now "swallow" lowlevel errors such as "no database selected", but *only* for the buffer handler writing to the job database record. Since it bubbles by default, other handlers will still handle that error, e.g. outputting it to php://stdout.
- Loading branch information