added logging around docstore setting