The log messages should be understandable even without wider context and should contain references to entities or tasks that have failed. (cherry picked from commit 16a563bc)