Commit Graph

4 Commits

Author SHA1 Message Date
Andy Getzendanner
698d4f483b In logging tests that write expectations against ScopedMockLog::Send, suppress the default behavior that forwards to ScopedMockLog::Log so that unexpected logs are printed with full metadata. Many of these tests are poking at those metadata, and a failure message that doesn't include them is unhelpful.
Also, add a GoogleTest debug `PrintTo` routine for `LogEntry`, so that unexpected calls to `ScopedMockLog::Send` print metadata legibly.

PiperOrigin-RevId: 790735226
Change-Id: If21821812a9b7ecfaefef9ea5085f161f9331cf4
2025-08-04 07:14:57 -07:00
Andy Getzendanner
f36183604e Add an API to clear the saved LogBacktraceAt location, and call it when setting an empty or invalid flag value.
PiperOrigin-RevId: 525065479
Change-Id: I3c0822db8301e0999b0669394b415df82edd445f
2023-04-18 00:30:06 -07:00
Abseil Team
6b2d248d3e Disables StderrKnobsDefault due to order dependency
The SetLogtostderr and SetAlsologtostderr tests are setting flags that cause the stderrthreshold global value to be out of sync with the stderrthreshold flag. As a result, it is not currently possible to remove order dependency with these existing tests.

PiperOrigin-RevId: 481731395
Change-Id: Ie992520982f2e69821d1d1b660e3326bf745ef0d
2022-10-17 13:54:25 -07:00
Gennadiy Rozental
92fdbfb301 Release the Abseil Logging library
PiperOrigin-RevId: 470080638
Change-Id: I8d9ddfabc7704c383ed5a73abf0411f4c58a4bf7
2022-08-25 14:16:08 -07:00