These two functions are used to log action descriptions and the corresponding command exit status in a consistent way.