I suggest dropping this to a single log statement rather than two.  i.e. change the second one to "Loaded fileitems: %i, directory: %s" etc.