juju/juju — pull request #1314 by johnweldon (2014-12-12 18:52:10+00:00)
Title: Go 1.4 version of `go vet` workaround

In go1.4 `go vet` incorrectly chokes on the call to
`logger.Logf(loggo.INFO, fmt, args...)` because the `loggo.INFO` is an
`iota` not an expected string.

The error message was:
`audit/audit.go:30: constant 3 not a string in call to Logf`
which was confusing, but the `iota` value of `loggo.INFO` is `3`

This fix sticks to the intent of the `audit.Audit` func, but uses
`logger.LogCallf` which both bypasses the `go vet` check, and reduces
one extra method call because `Logf` was previously calling `LogCallf`
in turn.