         if what != nil, do: acc = acc <> what
         to_write = byte_size(acc)
         if to_write != 0 && (to_write >= @max_buff_size || flush?) do
-          debug_log ["buffer write/flush", to_write, "/#{flush?}"]
+#          debug_log ["buffer write/flush", to_write, "/#{flush?}"]
           send_fn.(acc)
           acc = <<>>
           howlong = :infinity
         else
-          debug_log ["buffer write/flush", to_write, ?\/, flush?,
-                            " (buffering)"]
+#          debug_log ["buffer write/flush", to_write, ?\/, flush?,
+#                            " (buffering)"]
           howlong = @flush_wait_time
         end
         if who, do: send who, ack_mesg

      || format(what))
    end
  end
  defp debug_log(what), do: _log(:debug, what)
  defp err_log(what), do: _log(:error, what)
  defp info_log(what), do: _log(:info, what)
  

  end

  def terminate(reason, %{ writer_pid: writer } = state) when writer != nil do
#    debug_log ["terminating writer", state]
    send  writer, {:closed, self()}
    receive do
      :closed -> :ok
