I could not add the log into the database