Fix some error log lines that lead to confusion#3679
Conversation
032d5bb to
b9f2ec3
Compare
|
This PR increases the overall coverage and already introduces a not super helpful test (for a log line on error) So I will merge it with failing CI once approved! |
| [vm], | ||
| ); | ||
|
|
||
| useEffect(() => { |
There was a problem hiding this comment.
This doesn't match the PR description. This will lead to confusion in the future when looking at history
There was a problem hiding this comment.
Do you want to split this into two PR's? Or update the title.
I think the PR can stay as one cleanup PR. That removes outdated code that causes unwanted logs and also improve logs.
Sth like:
Remove outdated layout widget api messages (reduce and improve error logs)
There was a problem hiding this comment.
why is this outdated? This is now directly inside EC?
That means that ElementWidgetActions.TileLayout should be deprecated?
| }); | ||
| }); | ||
|
|
||
| it("logs if callIntent cannot be updated", async () => { |
There was a problem hiding this comment.
It is indeed testing the code, but looks like the code is talking to us? why are we trying to update call intent if not connected? I also find it strange that the intent is mutable :/ causes traffic everytime you mute/unmute camera
There was a problem hiding this comment.
I also played with checking if we are connected here. But it was somewhat redundant. if we already have a check in the js-sdk if we are connected.
| [vm], | ||
| ); | ||
|
|
||
| useEffect(() => { |
There was a problem hiding this comment.
why is this outdated? This is now directly inside EC?
That means that ElementWidgetActions.TileLayout should be deprecated?
split it into two PRs? |
It was designed in a way where the layout switch buttons were part of the element web header bar. |
YES |
b9f2ec3 to
1e6114e
Compare
In the past those log lines often were referenced for issues but they are no real issues. Either they are just deprecated code running or expected.
1e6114e to
a102b3f
Compare
|
@BillCarsonFr I have split this:
|
| [vm], | ||
| ); | ||
|
|
||
| useEffect(() => { |
There was a problem hiding this comment.
| if (ex instanceof MatrixError && ex.httpStatus === 404) { | ||
| // Expected, this is an unstable endpoint and it's not required. | ||
| logger.debug("Backend does not provide any RTC transports", ex); | ||
| logger.debug( |
There was a problem hiding this comment.
This a bit strange for a log no? looks lie it is a user facing string.
Maybe keep the old log and add that as a comment?
BillCarsonFr
left a comment
There was a problem hiding this comment.
OK, to merge.
It looks like the line markes as not covered by codecov are actually covered by this test Creating preferred transport based?
That is strange, ok to force merge
In the past those log lines often were referenced for issues but they are no real issues.
Either they are just deprecated code running or expected.