-
Notifications
You must be signed in to change notification settings - Fork 55
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
Create generic tedge log plugin #2086
Conversation
Robot Results
|
Since the plan is to deprecate This has to be discussed with @rina23q and @reubenmiller |
63a9b48
to
fbbf1e2
Compare
Codecov Report
Additional details and impacted files
|
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.
I did a quick sanity review.
9e4e7e4
to
accff1a
Compare
c0d6c10
to
a3f7af0
Compare
35b0494
to
95929f1
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! Some unit tests must be moved and cleaned up to the right place!
acee0cb
to
88a56db
Compare
|
||
#[error(transparent)] | ||
FromChannelError(#[from] tedge_actors::ChannelError), |
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 error case must not be caught as a LogManagementError
(send back to the cloud) but lead to a fatal actor error (as the actor peer has been dropped).
#[error(transparent)] | |
FromChannelError(#[from] tedge_actors::ChannelError), |
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.
Okay, the issue is deeper and caused by self.http_proxy.await_response(request).await?
mixing channel errors with HTTP errors. This will have to be improved by in a follow-up task.
23f0fbd
to
9b36f1b
Compare
} else { | ||
error!( | ||
"Received unexpected message on topic: {}", | ||
message.topic.name | ||
); | ||
} |
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.
I don't see how this can happen (unless the MQTT actor is buggy). Indeed this actor only subscribes to self.config.logfile_request_topic
.
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.
Approved.
Signed-off-by: Krzysztof Piotrowski <krzysztof.piotrowski@inetum.com>
Signed-off-by: Krzysztof Piotrowski <krzysztof.piotrowski@inetum.com>
Signed-off-by: Krzysztof Piotrowski <krzysztof.piotrowski@inetum.com>
Signed-off-by: Krzysztof Piotrowski <krzysztof.piotrowski@inetum.com>
9b36f1b
to
f5e2519
Compare
QA has thoroughly checked the feature and here are the results:
Test Cases will be created as soon as Installer is existing, that ticket has than to be linked with this one. |
Tests are covered by this PR #2213 |
Proposed changes
to do:
tedge_log_plugin
topic root
andtopic identifier
with tedge config valuesTypes of changes
Paste Link to the issue
#2048 and #2017
Checklist
cargo fmt
as mentioned in CODING_GUIDELINEScargo clippy
as mentioned in CODING_GUIDELINESFurther comments