Remove potential infinite recursion.
Remove potential infinite recursion.

Summary:
We are logging when the publish method fails which can trigger
another invocation of the publish method, and if the failure is
persistent it will cause and infinite recursion.

Test Plan: CI

Reviewed By: marcinkosiba

fbshipit-source-id: b78b574

zpao/buck,vschs007/buck,rmaz/buck,justinmuller/buck,zhan-xiong/buck,illicitonion/buck,LegNeato/buck,illicitonion/buck,LegNeato/buck,romanoid/buck,justinmuller/buck,darkforestzero/buck,nguyentruongtho/buck,rmaz/buck,shybovycha/buck,shs96c/buck,rmaz/buck,dsyang/buck,clonetwin26/buck,zhan-xiong/buck,raviagarwal7/buck,LegNeato/buck,rmaz/buck,clonetwin26/buck,clonetwin26/buck,JoelMarcey/buck,clonetwin26/buck,brettwooldridge/buck,shs96c/buck,grumpyjames/buck,marcinkwiatkowski/buck,LegNeato/buck,sdwilsh/buck,kageiit/buck,LegNeato/buck,davido/buck,k21/buck,ilya-klyuchnikov/buck,robbertvanginkel/buck,k21/buck,Addepar/buck,k21/buck,SeleniumHQ/buck,k21/buck,JoelMarcey/buck,rmaz/buck,davido/buck,JoelMarcey/buck,illicitonion/buck,justinmuller/buck,zhan-xiong/buck,grumpyjames/buck,ilya-klyuchnikov/buck,shybovycha/buck,rmaz/buck,Addepar/buck,clonetwin26/buck,janicduplessis/buck,OkBuilds/buck,shybovycha/buck,illicitonion/buck,k21/buck,sdwilsh/buck,JoelMarcey/buck,ilya-klyuchnikov/buck,k21/buck,LegNeato/buck,vschs007/buck,brettwooldridge/buck,LegNeato/buck,rmaz/buck,shs96c/buck,clonetwin26/buck,dsyang/buck,ilya-klyuchnikov/buck,brettwooldridge/buck,raviagarwal7/buck,daedric/buck,illicitonion/buck,facebook/buck,daedric/buck,nguyentruongtho/buck,OkBuilds/buck,marcinkwiatkowski/buck,k21/buck,darkforestzero/buck,SeleniumHQ/buck,davido/buck,sdwilsh/buck,zhan-xiong/buck,romanoid/buck,OkBuilds/buck,OkBuilds/buck,raviagarwal7/buck,dsyang/buck,illicitonion/buck,k21/buck,k21/buck,dsyang/buck,shybovycha/buck,shs96c/buck,clonetwin26/buck,sdwilsh/buck,sdwilsh/buck,zhan-xiong/buck,facebook/buck,rmaz/buck,zhan-xiong/buck,darkforestzero/buck,daedric/buck,davido/buck,rmaz/buck,raviagarwal7/buck,romanoid/buck,romanoid/buck,nguyentruongtho/buck,shs96c/buck,vschs007/buck,dsyang/buck,LegNeato/buck,Addepar/buck,facebook/buck,zpao/buck,Addepar/buck,shs96c/buck,davido/buck,dsyang/buck,daedric/buck,marcinkwiatkowski/buck,sdwilsh/buck,romanoid/buck,vschs007/buck,OkBuilds/buck,grumpyjames/buck,brettwooldridge/buck,davido/buck,grumpyjames/buck,SeleniumHQ/buck,OkBuilds/buck,ilya-klyuchnikov/buck,JoelMarcey/buck,darkforestzero/buck,shybovycha/buck,daedric/buck,romanoid/buck,clonetwin26/buck,LegNeato/buck,zpao/buck,zhan-xiong/buck,davido/buck,raviagarwal7/buck,zhan-xiong/buck,shs96c/buck,shybovycha/buck,JoelMarcey/buck,shs96c/buck,ilya-klyuchnikov/buck,Addepar/buck,justinmuller/buck,facebook/buck,SeleniumHQ/buck,janicduplessis/buck,ilya-klyuchnikov/buck,zpao/buck,justinmuller/buck,vschs007/buck,OkBuilds/buck,dsyang/buck,darkforestzero/buck,daedric/buck,SeleniumHQ/buck,shybovycha/buck,nguyentruongtho/buck,LegNeato/buck,JoelMarcey/buck,robbertvanginkel/buck,raviagarwal7/buck,robbertvanginkel/buck,Addepar/buck,sdwilsh/buck,sdwilsh/buck,illicitonion/buck,brettwooldridge/buck,kageiit/buck,JoelMarcey/buck,davido/buck,janicduplessis/buck,clonetwin26/buck,Addepar/buck,robbertvanginkel/buck,grumpyjames/buck,marcinkwiatkowski/buck,OkBuilds/buck,darkforestzero/buck,rmaz/buck,shybovycha/buck,davido/buck,ilya-klyuchnikov/buck,illicitonion/buck,OkBuilds/buck,raviagarwal7/buck,daedric/buck,facebook/buck,sdwilsh/buck,kageiit/buck,JoelMarcey/buck,SeleniumHQ/buck,vschs007/buck,dsyang/buck,robbertvanginkel/buck,darkforestzero/buck,facebook/buck,justinmuller/buck,JoelMarcey/buck,davido/buck,OkBuilds/buck,Addepar/buck,marcinkwiatkowski/buck,justinmuller/buck,SeleniumHQ/buck,vschs007/buck,romanoid/buck,brettwooldridge/buck,ilya-klyuchnikov/buck,vschs007/buck,zpao/buck,brettwooldridge/buck,raviagarwal7/buck,shybovycha/buck,janicduplessis/buck,robbertvanginkel/buck,marcinkwiatkowski/buck,vschs007/buck,LegNeato/buck,janicduplessis/buck,rmaz/buck,vschs007/buck,darkforestzero/buck,clonetwin26/buck,zhan-xiong/buck,nguyentruongtho/buck,sdwilsh/buck,daedric/buck,Addepar/buck,romanoid/buck,marcinkwiatkowski/buck,OkBuilds/buck,OkBuilds/buck,SeleniumHQ/buck,illicitonion/buck,vschs007/buck,darkforestzero/buck,justinmuller/buck,grumpyjames/buck,raviagarwal7/buck,SeleniumHQ/buck,OkBuilds/buck,grumpyjames/buck,davido/buck,daedric/buck,darkforestzero/buck,shs96c/buck,SeleniumHQ/buck,romanoid/buck,ilya-klyuchnikov/buck,kageiit/buck,marcinkwiatkowski/buck,dsyang/buck,janicduplessis/buck,clonetwin26/buck,janicduplessis/buck,k21/buck,robbertvanginkel/buck,Addepar/buck,shs96c/buck,facebook/buck,ilya-klyuchnikov/buck,k21/buck,rmaz/buck,SeleniumHQ/buck,robbertvanginkel/buck,clonetwin26/buck,raviagarwal7/buck,daedric/buck,illicitonion/buck,JoelMarcey/buck,marcinkwiatkowski/buck,shybovycha/buck,robbertvanginkel/buck,justinmuller/buck,justinmuller/buck,ilya-klyuchnikov/buck,SeleniumHQ/buck,zhan-xiong/buck,grumpyjames/buck,janicduplessis/buck,clonetwin26/buck,sdwilsh/buck,romanoid/buck,romanoid/buck,robbertvanginkel/buck,romanoid/buck,daedric/buck,k21/buck,LegNeato/buck,nguyentruongtho/buck,raviagarwal7/buck,JoelMarcey/buck,darkforestzero/buck,zhan-xiong/buck,marcinkwiatkowski/buck,sdwilsh/buck,illicitonion/buck,sdwilsh/buck,Addepar/buck,justinmuller/buck,illicitonion/buck,marcinkwiatkowski/buck,nguyentruongtho/buck,robbertvanginkel/buck,grumpyjames/buck,Addepar/buck,zhan-xiong/buck,shs96c/buck,shybovycha/buck,dsyang/buck,brettwooldridge/buck,dsyang/buck,vschs007/buck,brettwooldridge/buck,dsyang/buck,ilya-klyuchnikov/buck,LegNeato/buck,kageiit/buck,marcinkwiatkowski/buck,brettwooldridge/buck,zpao/buck,janicduplessis/buck,kageiit/buck,romanoid/buck,justinmuller/buck,brettwooldridge/buck,darkforestzero/buck,k21/buck,janicduplessis/buck,davido/buck,davido/buck,daedric/buck,marcinkwiatkowski/buck,shs96c/buck,brettwooldridge/buck,JoelMarcey/buck,SeleniumHQ/buck,grumpyjames/buck,daedric/buck,grumpyjames/buck,zhan-xiong/buck,shybovycha/buck,shybovycha/buck,illicitonion/buck,shs96c/buck,raviagarwal7/buck,grumpyjames/buck,rmaz/buck,zpao/buck,robbertvanginkel/buck,robbertvanginkel/buck,brettwooldridge/buck,raviagarwal7/buck,darkforestzero/buck,vschs007/buck,dsyang/buck,janicduplessis/buck,justinmuller/buck,Addepar/buck,kageiit/buck,janicduplessis/buck