Fixed logging snippet