Don't throw on late singleton registration
authorAndrii Grynenko <andrii@fb.com>
Fri, 6 May 2016 17:26:04 +0000 (10:26 -0700)
committerFacebook Github Bot 2 <facebook-github-bot-2-bot@fb.com>
Fri, 6 May 2016 17:35:29 +0000 (10:35 -0700)
commit8d90d07e9476f829f0fc7af7bf7efe6ad60e195a
tree64794d30437e40e73b247ea6f2143d971620367d
parentceaca5b0cc47ab731984f268d2403fca131ff04f
Don't throw on late singleton registration

Summary: Having singleton registered after registrationComplete() is called is not a hard failure. Replacing exception with ERROR, since we probably still want to avoid such situation.

Reviewed By: yfeldblum

Differential Revision: D3266376

fb-gh-sync-id: 8130d279775348c835265987c95189bd3d8106f9
fbshipit-source-id: 8130d279775348c835265987c95189bd3d8106f9
folly/Singleton.cpp