log handler: expand search for datastore key to first 5 lines

publish now logs it as late as line 4 or 5