Skip to content

perf(event bus): Remove expensive Logger debug call in PublishEventTx (backport #2911)#2936

Merged
andynog merged 2 commits intov0.38.xfrom
mergify/bp/v0.38.x/pr-2911
Apr 29, 2024
Merged

perf(event bus): Remove expensive Logger debug call in PublishEventTx (backport #2911)#2936
andynog merged 2 commits intov0.38.xfrom
mergify/bp/v0.38.x/pr-2911

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Apr 29, 2024

Component of #2869

This on its own is an expected 1% speedup to blocksync on osmosis mainnet right now.

I originally considered keeping the log lines but with only creating the logger cost if there is an error, but these are debug logs I've never seen. I think its better to just remove these debug logs directly, rather than worry about maintaining them. These aren't even that concerning scenarios I feel like, as more of the stack moves away from these.


PR checklist

  • Tests written/updated - Covered by existing tests
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments
  • Title follows the Conventional Commits spec

This is an automatic backport of pull request #2911 done by [Mergify](https://mergify.com).

…#2911)

Component of #2869

This on its own is an expected 1% speedup to blocksync on osmosis
mainnet right now.

I originally considered keeping the log lines but with only creating the
logger cost if there is an error, but these are debug logs I've never
seen. I think its better to just remove these debug logs directly,
rather than worry about maintaining them. These aren't even that
concerning scenarios I feel like, as more of the stack moves away from
these.

---

#### PR checklist

- [x] Tests written/updated - Covered by existing tests
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [X] Updated relevant documentation (`docs/` or `spec/`) and code
comments
- [X] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec

(cherry picked from commit ce68e90)

# Conflicts:
#	types/event_bus.go
@mergify mergify bot requested a review from a team as a code owner April 29, 2024 18:32
@mergify mergify bot added the conflicts label Apr 29, 2024
@mergify
Copy link
Contributor Author

mergify bot commented Apr 29, 2024

Cherry-pick of ce68e90 has failed:

On branch mergify/bp/v0.38.x/pr-2911
Your branch is up to date with 'origin/v0.38.x'.

You are currently cherry-picking commit ce68e90da.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	new file:   .changelog/unreleased/improvements/2911-remove-event-bus-debug-logs.md

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   types/event_bus.go

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@andynog andynog self-assigned this Apr 29, 2024
@andynog andynog removed the conflicts label Apr 29, 2024
Copy link
Collaborator

@andynog andynog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@andynog andynog merged commit a70a989 into v0.38.x Apr 29, 2024
@andynog andynog deleted the mergify/bp/v0.38.x/pr-2911 branch April 29, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants