log security fix