If this is a helper function (putting it in the category of library functions), it ought not to log.  It should return an error.