Register for InstructureCon25 • Passes include access to all sessions, the expo hall, entertainment and networking events, meals, and extraterrestrial encounters.
Found this content helpful? Log in or sign up to leave a like!
Hello,
I'm using Python to automatically sync our CANVAS data into our database. However, I'd prefer to not have the results of each table's syncing printed out (e.g. "No rows to upsert", "No rows to delete").
Is there a way to add a line (or so) to the code so that those logs won't be printed out?
I'm new to this Python package and coding in general.
Thanks!
Solved! Go to Solution.
I was able to figure this out.
At the bottom of the docs, you can find where it talks about logging: https://data-access-platform-api.s3.amazonaws.com/client/README.html#configure-log-level-for-debuggi...
I took the code at the bottom of the page, and updated the "DEBUG" to "CRITICAL". This gives no logging unless there are issues, and only the print statements I want to print are printed out. https://docs.python.org/3/library/logging.html#levels
I was able to figure this out.
At the bottom of the docs, you can find where it talks about logging: https://data-access-platform-api.s3.amazonaws.com/client/README.html#configure-log-level-for-debuggi...
I took the code at the bottom of the page, and updated the "DEBUG" to "CRITICAL". This gives no logging unless there are issues, and only the print statements I want to print are printed out. https://docs.python.org/3/library/logging.html#levels
To interact with Panda Bot in the Instructure Community, you need to sign up or log in:
Sign In