Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed logging when objects are constructed and destructed #19

Conversation

permobergedge
Copy link
Contributor

Changed from c-style casting to c++-style.

@permobergedge permobergedge requested a review from a team December 4, 2024 16:46
@permobergedge permobergedge force-pushed the per/remove_construct_destruct_logging_change_to_c++_casting branch 2 times, most recently from 6811413 to 957a072 Compare December 4, 2024 16:57
Copy link

@magnusedgeware magnusedgeware left a comment

Choose a reason for hiding this comment

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

Good job, looks nice!

#define EFP_MAJOR_VERSION 0
#define EFP_MINOR_VERSION 4
constexpr uint8_t EFP_MAJOR_VERSION = 0;
constexpr uint8_t EFP_MINOR_VERSION = 4;

Choose a reason for hiding this comment

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

Should we increase version, just for the record? After all, you have made some changes, most of them (hopefully) not noticeable, except for the removed loggings.

Copy link
Contributor

Choose a reason for hiding this comment

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

This PR should not have changed the behavior of the repo, not even fixed any bugs, so I would argue this would not bump the version number. This PR ought to just be a refactorization of the code style.
And the logs should not have been used for anything except manual debugging, so no need to bump the version because of them, if you ask me.

Copy link
Contributor

@tomasoh-ateliere tomasoh-ateliere left a comment

Choose a reason for hiding this comment

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

Nice cleanup!

@@ -14,7 +14,7 @@
#include "ElasticInternal.h"
#include "logger.h"

#define WORKER_THREAD_SLEEP_US 1000 * 10
#define WORKER_THREAD_SLEEP_US (1000 * 10)
Copy link
Contributor

Choose a reason for hiding this comment

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

Change to constexpr uint32_t or something similar?

#define EFP_MAJOR_VERSION 0
#define EFP_MINOR_VERSION 4
constexpr uint8_t EFP_MAJOR_VERSION = 0;
constexpr uint8_t EFP_MINOR_VERSION = 4;
Copy link
Contributor

Choose a reason for hiding this comment

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

This PR should not have changed the behavior of the repo, not even fixed any bugs, so I would argue this would not bump the version number. This PR ought to just be a refactorization of the code style.
And the logs should not have been used for anything except manual debugging, so no need to bump the version because of them, if you ask me.

Changed from c-style casting to c++-style.
@permobergedge permobergedge force-pushed the per/remove_construct_destruct_logging_change_to_c++_casting branch from 957a072 to b01c78c Compare December 5, 2024 10:07
@permobergedge permobergedge merged commit 4231cf9 into master Dec 5, 2024
4 checks passed
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.

3 participants