Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@IvoB1987
Copy link
Contributor

@IvoB1987 IvoB1987 commented Jan 4, 2023

Simplify the logger and fixes #328

Copy link
Collaborator

@Perondas Perondas left a comment

Choose a reason for hiding this comment

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

Your implementation broke multiple logs.

error - The method 'w' isn't defined for the type 'Log' - lib\src\sip_ua_helper.dart:65:11 - undefined_method
error - The method 'e' isn't defined for the type 'Log' - lib\src\sip_ua_helper.dart:80:11 - undefined_method
error - The method 'e' isn't defined for the type 'Log' - lib\src\transports\websocket_interface.dart:109:11 - undefined_method
error - The method 'e' isn't defined for the type 'Log' - lib\src\ua.dart:334:15 - undefined_method
error - The method 'e' isn't defined for the type 'Log' - lib\src\ua.dart:347:15 - undefined_method

Either return the static Log object or (preferably) replace them all with the logger static object.

@IvoB1987
Copy link
Contributor Author

IvoB1987 commented Feb 6, 2023

@Perondas you are right, my mistake. Personally I replaced all Log reference with logger earlier and I forgot about it being like that. I believe it was wrong to use Log anyway since every other place where something is logged uses logger. It was hard for me to see that the change was dependent on the Logger class since I have customised the sip_ua library on many other places as well in my project. I'm not really active on github and making pull requests is also a bit new to me. Personally I don't really feel like making the corrections for this pull requests, so feel free to edit it yourself, or just ignore it, whatever you prefer. I can't be bothered with it.

@Perondas Perondas merged commit 3114b8d into flutter-webrtc:master Feb 6, 2023
@IvoB1987 IvoB1987 deleted the patch-1 branch February 6, 2023 08:55
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.

Default logger is broken in 0.5.3

2 participants