log with toString in case of binary buffer