Avoid glog when warning about Singleton double-registration
Summary: [Folly] Avoid glog when warning about `Singleton` double-registration. Because registration happens at static initialization time, long before main, and possibly long before glog is initialized. This makes a difference because, in some cases of double-registration, we can get a SIGSEGV with no message, because we are attempting to `LOG(FATAL)` when glog is uninitialized. What we would much rather have is a SIGABRT with a message. Reviewed By: meyering Differential Revision: D3245047 fb-gh-sync-id: 4c5dd9d25025f197d7c490ffbb429af5ccb82182 fbshipit-source-id: 4c5dd9d25025f197d7c490ffbb429af5ccb82182
Showing
Please register or sign in to comment