-
Notifications
You must be signed in to change notification settings - Fork 111
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
RSDK-9117 - Remove logger from NewModuleFromArgs, and moduleName from ModularMain #4482
Conversation
module.ModularMain( | ||
"complexmodule", |
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.
sighhhhhhhhh
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.
@cheukt I'm fine with leaving ModularMain
alone. And just leaving a small comment about why it takes in a string that isn't used.
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.
no it's okay, I'm being slightly melodramatic here. We will update the go modules eventually.
Will anything break the binaries currently uploaded to the registry? from my understanding, no.
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.
no, it will not break any current binaries, this will only break if you update rdk on the package
we could also not break ModularMain, but we won't be using the |
I'm chaotic and okay with this.
Is it used anywhere useful? |
NewLoggerFromArgs is not used anywhere useful in rdk, but the parameter is technically still used if you do call NewLoggerFromArgs, which is why I'm keeping it for now |
we want to force a breakage so that users will not use the wrong logger when making a Go module.
logs now look like
on app
when it used to be
I think it's generally fine to no longer have the moduleName tacked on to the beginning of the logger name.
this is a breaking change but all the user needs to do is to get rid of the logger/module name from their function calls
cc: @benjirewis