Fixed logging for preference plugin