-
Notifications
You must be signed in to change notification settings - Fork 22
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
Minor improvements around logging and error reporting (in lib/lbt package) #29
Conversation
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.
Commit message should have a category (e.g. [INTERNAL])
- all loggers in the lib/lbt modules now use the same hierarchical naming scheme as the other modules - component analyzers no longer fail but return silently when there's no manifest.json (often occurs in test data) - more log outputs of the JSModuleAnalyzer now have been classified as 'verbose' to reduce the noise during build - usages of the Java method 'String.format' that had been missed during migration have been fixed
b6bf115
to
e6e0db8
Compare
👍👍👍👍👍 |
Hi @codeworrior, there's still error thrown from ResourcePool.js when some module can't be found: ui5-builder/lib/lbt/resources/ResourcePool.js Line 162 in e6e0db8
Is there a plan to replace this with verbose as well? Best regards, |
I considered this, but decided against it. In my opinion a configured but missing resource represents a significant configuration error. Do you have a concrete scenario where it would make more sense to tolerate this? |
I agree with you. If a configured resource is missing, we definitely need to throw an error. I was thinking under the context of the missing manifest file in component analyser and I pointed out the wrong place about the thrown error. If a component doesn't have a manifest, there's still error logged from the following line:
Does it make sense to replace this log.error with log.verbose? Because the missing manifest isn't configured anywhere and I find the following errors in the output too strong for a unintendedly missing manifest file. ERR! ComponentAnalyzer Error: resource not found in pool: 'pony/dummy/defaults/manifest.json' |
Strange. These are exactly the messages that I suppressed with 55b1e89 (note the The line numbers didn't change with my commit, so that part of the stack traces doesn't give a hint. But to me, the file names look suspicious ( If everything is fine, what node version are you using? |
Hi @codeworrior, sorry that the npm link between ui5-cli and ui5-builder wasn't established correctly in my local workspace. I think I forgot to link to the ui5-builder in ui5-cli after creating the link in ui5-builder. 😓 I tested again and the ERRs are gone. Best regards, |
naming scheme as the other modules
no manifest.json (often occurs in test data)
'verbose' to reduce the noise during build
during migration have been fixed