mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-29 22:36:14 -06:00
fix logging
This commit is contained in:
parent
bb8afd231d
commit
3f342f8549
1 changed files with 2 additions and 2 deletions
|
|
@ -71,7 +71,7 @@ func init() {
|
||||||
// we must drop all indices that rely on it.
|
// we must drop all indices that rely on it.
|
||||||
log.Info(ctx, "dropping old visibility indexes...")
|
log.Info(ctx, "dropping old visibility indexes...")
|
||||||
for _, index := range visIndices {
|
for _, index := range visIndices {
|
||||||
log.Info(ctx, "dropping old index %s...", index.name)
|
log.Infof(ctx, "dropping old index %s...", index.name)
|
||||||
if _, err := tx.NewDropIndex().
|
if _, err := tx.NewDropIndex().
|
||||||
Index(index.name).
|
Index(index.name).
|
||||||
Exec(ctx); err != nil {
|
Exec(ctx); err != nil {
|
||||||
|
|
@ -93,7 +93,7 @@ func init() {
|
||||||
// Recreate the visibility indices.
|
// Recreate the visibility indices.
|
||||||
log.Info(ctx, "creating new visibility indexes...")
|
log.Info(ctx, "creating new visibility indexes...")
|
||||||
for _, index := range visIndices {
|
for _, index := range visIndices {
|
||||||
log.Info(ctx, "creating new index %s...", index.name)
|
log.Infof(ctx, "creating new index %s...", index.name)
|
||||||
q := tx.NewCreateIndex().
|
q := tx.NewCreateIndex().
|
||||||
Table("statuses").
|
Table("statuses").
|
||||||
Index(index.name).
|
Index(index.name).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue