Skip to content

Commit

Permalink
Redirect stacktraces to file if needed
Browse files Browse the repository at this point in the history
So far, the output file was ignored when stack traces are printed. This PR fixes the behavior.
  • Loading branch information
jnidzwetzki committed Mar 8, 2024
1 parent 785e385 commit 059a676
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pg_lock_tracer/pg_lock_tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,8 @@ def print_stacktace_if_available(self, event):
)
line = line.decode("utf-8")
# Get line with: 'gdb info line *(symbol+0x1111)'
print(f"\t{line}")
line = f"\t{line}"
self.handle_output_line(line)


class PGLockTraceOutputJSON(PGLockTraceOutput):
Expand Down

0 comments on commit 059a676

Please sign in to comment.