[FEATURE] Fix logging-not-lazy  to market.p...

rebase
@sophron Can you take a look at this line incidentally? This isn't part of this patch (the patch is just reformatting), but perhaps we could use a json.loads instead?