Skip to content

Python OSITrace message_offset contains actual messages instead of lengths #372

@tpajenkamp-dspace

Description

@tpajenkamp-dspace

Describe the bug

After calling "from_file", the attribute "message_offsets" contains the itneger 0 and a bunch of message objects.

Describe how to reproduce the bug

Steps to reproduce the behavior:
t = OSITrace()
t.from_file(myPath)

Describe the expected behavior

"message_offsets" contains the lengths of individual messages.

Additional context

In line 145 of retrieve_message(): self.message_offsets.append(message) is incorrect

Metadata

Metadata

Assignees

Labels

BugProblems in the build system, build scripts, etc or faults in the interface.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions