HDFS-2856: add debug logging