added logging for BF #23
BF#39