Added log when failed to save logs into database