mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-25 20:22:18 +03:00
LibPDF: Add some logging behind PDF_DEBUG
I've added these two lines a bunch of times by now. Let's check them in. If they turn out to be annoying, we can remove them again.
This commit is contained in:
parent
f58ca99a66
commit
495aaa295c
Notes:
sideshowbarker
2024-07-17 23:07:41 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/495aaa295c Pull-request: https://github.com/SerenityOS/serenity/pull/23639
@ -140,6 +140,8 @@ PDFErrorOr<Value> Parser::parse_possible_indirect_value_or_ref()
|
||||
|
||||
PDFErrorOr<NonnullRefPtr<IndirectValue>> Parser::parse_indirect_value(u32 index, u32 generation)
|
||||
{
|
||||
dbgln_if(PDF_DEBUG, "Parsing indirect value {} {}", index, generation);
|
||||
|
||||
if (!m_reader.matches("obj"))
|
||||
return error("Expected \"obj\" at beginning of indirect value");
|
||||
m_reader.move_by(3);
|
||||
@ -155,6 +157,8 @@ PDFErrorOr<NonnullRefPtr<IndirectValue>> Parser::parse_indirect_value(u32 index,
|
||||
|
||||
pop_reference();
|
||||
|
||||
dbgln_if(PDF_DEBUG, "Done parsing indirect value {} {}", index, generation);
|
||||
|
||||
return make_object<IndirectValue>(index, generation, value);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user