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

refactor: simplify warn! and error! macros #2503

Merged
merged 3 commits into from
Sep 27, 2023

Conversation

waynexia
Copy link
Member

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

Simplify the implementation. Use debug format by default and remove the status code.

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

closes #2502

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@waynexia waynexia enabled auto-merge September 26, 2023 12:21
src/common/telemetry/src/macros.rs Outdated Show resolved Hide resolved
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

Merging #2503 (7b5fcaa) into develop (515ce82) will decrease coverage by 0.08%.
Report is 2 commits behind head on develop.
The diff coverage is 100.00%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2503      +/-   ##
===========================================
- Coverage    84.98%   84.91%   -0.08%     
===========================================
  Files          726      729       +3     
  Lines       115592   115864     +272     
===========================================
+ Hits         98241    98387     +146     
- Misses       17351    17477     +126     

@waynexia waynexia added this pull request to the merge queue Sep 27, 2023
Merged via the queue into GreptimeTeam:develop with commit fbe2f2d Sep 27, 2023
13 checks passed
@waynexia waynexia deleted the simplify-error-warn branch September 27, 2023 03:21
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
* refactor: simplify the error! and warn! macros

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* support display format

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* err.msg to err

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
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.

proposal: log macros support printing error in debug format
3 participants