-
Notifications
You must be signed in to change notification settings - Fork 6
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
Improve logging #1
Comments
Hi Dave, I agree that the error logging probably need improving You'll probably find that the error in the browser console (F12 on windows) is more informative - or at least may be useful for me. If you have a moment to recreate the issue then a copy of the browser console log would be really useful. Any idea what it didn't like migrating? Thanks for being the guinea pig and taking time to file an issue |
Following up from an email with the logs...
The migration tool can't get the binary for the application because the cockpit application (being built in) does not store its binary on cumulocity. This shouldn't be a problem because the cockpit application is installed on all tenants and doesn't need to be migrated. The logging however is a valid concern |
Debugged the actual code - turns out in this case it was a custom cockpit and the binary was available this was a bug and is captured in a separate issue: #2 |
Changes to be made to logging:
|
- Each step now logs - Failure will print failed step and may include reason for failure (if c8y api is descriptive)
As first "guinean pig" tester of this great solution to accelerate C8y assets/objects management across tenants, I encountered few hiccups during my first objects migration from an existing pilot tenant to my own PoC/internal tenant. Unfortunately the error message was very evasive as shown in the attached screenshot and no logging available to further debug the issue and trace down problematic object/migration step, forcing me to do a painful "try and error" migration approach almost object by object:
For more complex migrations involving multiple objects and dependencies it would greatly help to have some logging functionality wrapped around the web app itself, or maybe as part of a contained microservice app to subscribe in the tenant with status and log options (vs just a web app and like what we have for fieldbus etc for instance).
The text was updated successfully, but these errors were encountered: