-
Notifications
You must be signed in to change notification settings - Fork 94
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
Use new logging framework consistently #1459
Use new logging framework consistently #1459
Conversation
Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
Some |
src/components/AppMain.vue
Outdated
/* This is left here as an example in case the routes need to be debugged again | ||
'$route' (to, from) { | ||
console.log(this.$window.isSameBaseRoute(from.fullPath, to.fullPath)) | ||
this.$log.debug(this.$window.isSameBaseRoute(from.fullPath, to.fullPath)) | ||
}, | ||
*/ |
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.
These lines are commented out. After it is redirected to a debug-level logger, we could remove the comment and just let the logger ignore the logged data in the normal (non-debug) case. Am I right?
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.
Sure. Sounds like a plan.
Yes, I would say so, you can switch to the new logger with debugging level. This seems a good idea. A general question: What do you consider needed to finish this PR? |
I was just waiting for your feedback on how to handle |
Now, we don't need to comment them out, we can just change the log level Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
Instead, just do everything through the logging API Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
Ahh, ok. Sorry for the delay. |
No worries. I've been super busy too. |
Signed-off-by: Christian Wolf <github@christianwolf.email>
Replace all instances of
console.log
and alternatives withthis.$log.info
orVue.$log.info
.In #1404, I noticed that although a logging framework was added in #1283,
console.log
andconsole.error
were still used frequently throughout the app. This PR aims to replace all of these with the logging framework.