Page MenuHomePhabricator

log: Nuke error(...)
ClosedPublic

Authored by PiRK on Fri, Nov 21, 11:09.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC3a3d9942a46d: log: Nuke error(...)
Summary

error(...) has many issues:

  • It is often used in the context of return error(...), implying that it has a "fancy" type, creating confusion with util::Result/Error
  • -logsourcelocations does not work with it, because it will pretend the error happened inside of logging.h
  • The log line contains ERROR: , as opposed to [error], like for other errors logged with LogError.

Fix all issues by removing it.

This is a backport of core#29236

Test Plan

ninja all check-all

Event Timeline

PiRK published this revision for review.Fri, Nov 21, 11:12
This revision is now accepted and ready to land.Fri, Nov 21, 12:29
This revision was automatically updated to reflect the committed changes.