Merge "Add a function to allow statslog failure."