MP1-4155: fixed performance of logging