Skip to content

Commit 495aaa2

Browse files
nicotrflynn89
authored andcommitted
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.
1 parent f58ca99 commit 495aaa2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Userland/Libraries/LibPDF/Parser.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ PDFErrorOr<Value> Parser::parse_possible_indirect_value_or_ref()
140140

141141
PDFErrorOr<NonnullRefPtr<IndirectValue>> Parser::parse_indirect_value(u32 index, u32 generation)
142142
{
143+
dbgln_if(PDF_DEBUG, "Parsing indirect value {} {}", index, generation);
144+
143145
if (!m_reader.matches("obj"))
144146
return error("Expected \"obj\" at beginning of indirect value");
145147
m_reader.move_by(3);
@@ -155,6 +157,8 @@ PDFErrorOr<NonnullRefPtr<IndirectValue>> Parser::parse_indirect_value(u32 index,
155157

156158
pop_reference();
157159

160+
dbgln_if(PDF_DEBUG, "Done parsing indirect value {} {}", index, generation);
161+
158162
return make_object<IndirectValue>(index, generation, value);
159163
}
160164

0 commit comments

Comments
 (0)