Skip to content

Commit 6a741b2

Browse files
authored
Merge branch 'main' into msc3861
2 parents ba919d7 + 57bbba3 commit 6a741b2

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

federationapi/queue/destinationqueue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func (oq *destinationQueue) wakeQueueIfEventsPending(forceWakeup bool) {
147147
// or if forceWakeup is true. Otherwise there is no reason to start the
148148
// queue goroutine and waste resources.
149149
if forceWakeup || eventsPending() {
150-
logrus.Info("Starting queue due to pending events or forceWakeup")
150+
logrus.Debugf("Starting queue %q -> %q due to pending events or forceWakeup", oq.origin, oq.destination)
151151
oq.wakeQueueAndNotify()
152152
}
153153
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ require (
4747
go.uber.org/atomic v1.11.0
4848
golang.org/x/crypto v0.32.0
4949
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56
50-
golang.org/x/image v0.18.0
50+
golang.org/x/image v0.23.0
5151
golang.org/x/mobile v0.0.0-20240520174638-fa72addaaa1b
5252
golang.org/x/sync v0.10.0
5353
golang.org/x/term v0.28.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,8 @@ golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56/go.mod h1:M4RDyNAINzryxdtnbR
404404
golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs=
405405
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
406406
golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
407-
golang.org/x/image v0.18.0 h1:jGzIakQa/ZXI1I0Fxvaa9W7yP25TqT6cHIHn+6CqvSQ=
408-
golang.org/x/image v0.18.0/go.mod h1:4yyo5vMFQjVjUcVk4jEQcU9MGy/rulF5WvUILseCM2E=
407+
golang.org/x/image v0.23.0 h1:HseQ7c2OpPKTPVzNjG5fwJsOTCiiwS4QdsYi5XU6H68=
408+
golang.org/x/image v0.23.0/go.mod h1:wJJBTdLfCCf3tiHa1fNxpZmUI4mmoZvwMCPP0ddoNKY=
409409
golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=
410410
golang.org/x/mobile v0.0.0-20240520174638-fa72addaaa1b h1:WX7nnnLfCEXg+FmdYZPai2XuP3VqCP1HZVMST0n9DF0=
411411
golang.org/x/mobile v0.0.0-20240520174638-fa72addaaa1b/go.mod h1:EiXZlVfUTaAyySFVJb9rsODuiO+WXu8HrUuySb7nYFw=

mediaapi/thumbnailer/thumbnailer.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func getActiveThumbnailGeneration(dst types.Path, _ types.ThumbnailSize, activeT
8686
activeThumbnailGeneration.Lock()
8787
defer activeThumbnailGeneration.Unlock()
8888
if activeThumbnailGenerationResult, ok := activeThumbnailGeneration.PathToResult[string(dst)]; ok {
89-
logger.Info("Waiting for another goroutine to generate the thumbnail.")
89+
logger.Debugf("Waiting for another goroutine to generate the thumbnail %q", dst)
9090

9191
// NOTE: Wait unlocks and locks again internally. There is still a deferred Unlock() that will unlock this.
9292
activeThumbnailGenerationResult.Cond.Wait()
@@ -115,7 +115,7 @@ func broadcastGeneration(dst types.Path, activeThumbnailGeneration *types.Active
115115
activeThumbnailGeneration.Lock()
116116
defer activeThumbnailGeneration.Unlock()
117117
if activeThumbnailGenerationResult, ok := activeThumbnailGeneration.PathToResult[string(dst)]; ok {
118-
logger.Info("Signalling other goroutines waiting for this goroutine to generate the thumbnail.")
118+
logger.Debugf("Signalling other goroutines waiting for this goroutine to generate the thumbnail %q", dst)
119119
// Note: errorReturn is a named return value error that is signalled from here to waiting goroutines
120120
activeThumbnailGenerationResult.Err = errorReturn
121121
activeThumbnailGenerationResult.Cond.Broadcast()
@@ -136,7 +136,7 @@ func isThumbnailExists(
136136
config.Width, config.Height, config.ResizeMethod,
137137
)
138138
if err != nil {
139-
logger.Error("Failed to query database for thumbnail.")
139+
logger.Errorf("Failed to query database for thumbnail %q", dst)
140140
return false, err
141141
}
142142
if thumbnailMetadata != nil {

mediaapi/thumbnailer/thumbnailer_bimg.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func createThumbnail(
153153
"ActualWidth": width,
154154
"ActualHeight": height,
155155
"processTime": time.Now().Sub(start),
156-
}).Info("Generated thumbnail")
156+
}).Debugf("Generated thumbnail %q", dst)
157157

158158
stat, err := os.Stat(string(dst))
159159
if err != nil {

mediaapi/thumbnailer/thumbnailer_nfnt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func createThumbnail(
191191
"ActualWidth": width,
192192
"ActualHeight": height,
193193
"processTime": time.Since(start),
194-
}).Info("Generated thumbnail")
194+
}).Debugf("Generated thumbnail %q", dst)
195195

196196
stat, err := os.Stat(string(dst))
197197
if err != nil {

0 commit comments

Comments
 (0)