Logging versus error reporting