Use actual database name in db creation failed log (#6780)

This commit is contained in:
Daniel Nelson 2019-12-10 12:58:59 -08:00 committed by GitHub
parent 5034af7af2
commit eb00f41905
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ func (i *InfluxDB) httpClient(ctx context.Context, url *url.URL, proxy *url.URL)
err = c.CreateDatabase(ctx, c.Database())
if err != nil {
i.Log.Warnf("When writing to [%s]: database %q creation failed: %v",
c.URL(), i.Database, err)
c.URL(), c.Database(), err)
}
}