-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[core] Setup logger to be able to use logging in plugins #2845
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
Changes from all commits
a168e9a
d794895
49859d5
0529cc1
4e8bb22
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -174,13 +174,15 @@ | |
|
|
||
| def _createNode(self) -> Node: | ||
| logging.info(f"Creating node '{self.name}'") | ||
| # TODO: user inputs/outputs may conflicts with internal names (like position, uid) | ||
| # TODO: user inputs/outputs may conflicts with internal names (like logLevel, position, uid) | ||
| # The line below can cause UI issues but at least prevent crashes | ||
| internalInputs = {k: v for k, v in self.internalInputs.items() if k not in self.inputs.keys()} | ||
|
Comment on lines
+178
to
+179
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this necessary, since the internal input for the logger doesn't have (and isn't likely to ever have) the same name as an input parameter?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It shouldn't be necessary, but I still think this is better to have this protection, because having twice the same keyword arg in the call of |
||
| return Node( | ||
| self.nodeType, | ||
| position=self.position, | ||
| uid=self.uid, | ||
| **self.inputs, | ||
| **self.internalInputs, | ||
| **internalInputs, | ||
| **self.outputs, | ||
| ) | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.