cli.go
func logError(err error, status int) int {
	log.Printf("[ERR] (cli) %s", err)
	return status
}
func logError(err error, status int) int {
	log.Printf("[ERR] (cli) %s", err)
	return status
}
// logError logs an error message and then returns the given status.