Exend XLOG_EVERY_N use
Summary: the n argument in XLOG_EVERY_N is not captured by it's lambda, so expressions using local variables can not be passed as n. EdenFS has a use case where we would like to use local variables here. We want to use a dynamic config value for n, so that we can easily adjust how often we log see: D25505654. It seems like it should be ok to capture the n here, but I am by no means a macro expert, so please let me know if there is a tricky cpp thing here lurking that makes capturing n bad. Reviewed By: simpkins Differential Revision: D25551033 fbshipit-source-id: e82fa465823d3d2ee2ac26924cc4a93b7b7242dd
Showing
Please register or sign in to comment