# questions

Danny Park

02/07/2024, 8:04 PM
Hi, I am working on Kedro hooks. I'm using the kedro space-flights tutorial pipeline and I had a question why the hooks are not running. My end goal is to create a DataValidationHook where it uses Evidently AI to check the integrity of the datacatalogs before the node runs and after the node runs. I am first testing the hook connection, but it seems like it is not working. Here is my code. The output does not show the list of catalog. Are the hooks running? How can I achieve my goal?
👀 1

Nok Lam Chan

02/08/2024, 12:19 AM
Can you try with print instead of logger?
plusone 1

Ahdra Merali

02/08/2024, 9:28 AM
Seconded, a print statement would help. I'm curious about your logging calls - why not use
Copy code
logging.getLogger(__name__).info("List of catalog: {}".format(catalog.list()))
in your hook, instead of declaring a logger property and using
Copy code
<|>("List of catalog: {}".format(catalog.list()))
Additionally, what version of Kedro are you using, and have you made any customisations to your project logging setup?

Nok Lam Chan

02/08/2024, 10:44 AM
The reason I suggest printing first is because I ran into similar issues before and it's because of the logging settings, just want to confirm.