Use actual database name in db creation failed log (#6780)
This commit is contained in:
parent
5034af7af2
commit
eb00f41905
|
@ -278,7 +278,7 @@ func (i *InfluxDB) httpClient(ctx context.Context, url *url.URL, proxy *url.URL)
|
||||||
err = c.CreateDatabase(ctx, c.Database())
|
err = c.CreateDatabase(ctx, c.Database())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
i.Log.Warnf("When writing to [%s]: database %q creation failed: %v",
|
i.Log.Warnf("When writing to [%s]: database %q creation failed: %v",
|
||||||
c.URL(), i.Database, err)
|
c.URL(), c.Database(), err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue