Logging source of error for the rules