Adding log output on failure