Only log tree if there are documents
Merge branch 'master' into gui