mwarning: Logging optimization