-
Notifications
You must be signed in to change notification settings - Fork 6
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
Removed logging when objects are constructed and destructed #19
Conversation
6811413
to
957a072
Compare
There was a problem hiding this 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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup!
ElasticFrameProtocol.cpp
Outdated
@@ -14,7 +14,7 @@ | |||
#include "ElasticInternal.h" | |||
#include "logger.h" | |||
|
|||
#define WORKER_THREAD_SLEEP_US 1000 * 10 | |||
#define WORKER_THREAD_SLEEP_US (1000 * 10) |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
957a072
to
b01c78c
Compare
Changed from c-style casting to c++-style.