mirror of
https://github.com/element-hq/dendrite.git
synced 2025-03-14 14:15:35 +00:00
Also demote useless thumbnailer warnings
Signed-off-by: Neil Alexander <git@neilalexander.dev>
This commit is contained in:
parent
eb77983ea3
commit
b41235521a
3 changed files with 5 additions and 5 deletions
|
@ -86,7 +86,7 @@ func getActiveThumbnailGeneration(dst types.Path, _ types.ThumbnailSize, activeT
|
|||
activeThumbnailGeneration.Lock()
|
||||
defer activeThumbnailGeneration.Unlock()
|
||||
if activeThumbnailGenerationResult, ok := activeThumbnailGeneration.PathToResult[string(dst)]; ok {
|
||||
logger.Info("Waiting for another goroutine to generate the thumbnail.")
|
||||
logger.Debugf("Waiting for another goroutine to generate the thumbnail %q", dst)
|
||||
|
||||
// NOTE: Wait unlocks and locks again internally. There is still a deferred Unlock() that will unlock this.
|
||||
activeThumbnailGenerationResult.Cond.Wait()
|
||||
|
@ -115,7 +115,7 @@ func broadcastGeneration(dst types.Path, activeThumbnailGeneration *types.Active
|
|||
activeThumbnailGeneration.Lock()
|
||||
defer activeThumbnailGeneration.Unlock()
|
||||
if activeThumbnailGenerationResult, ok := activeThumbnailGeneration.PathToResult[string(dst)]; ok {
|
||||
logger.Info("Signalling other goroutines waiting for this goroutine to generate the thumbnail.")
|
||||
logger.Debugf("Signalling other goroutines waiting for this goroutine to generate the thumbnail %q", dst)
|
||||
// Note: errorReturn is a named return value error that is signalled from here to waiting goroutines
|
||||
activeThumbnailGenerationResult.Err = errorReturn
|
||||
activeThumbnailGenerationResult.Cond.Broadcast()
|
||||
|
@ -136,7 +136,7 @@ func isThumbnailExists(
|
|||
config.Width, config.Height, config.ResizeMethod,
|
||||
)
|
||||
if err != nil {
|
||||
logger.Error("Failed to query database for thumbnail.")
|
||||
logger.Errorf("Failed to query database for thumbnail %q", dst)
|
||||
return false, err
|
||||
}
|
||||
if thumbnailMetadata != nil {
|
||||
|
|
|
@ -153,7 +153,7 @@ func createThumbnail(
|
|||
"ActualWidth": width,
|
||||
"ActualHeight": height,
|
||||
"processTime": time.Now().Sub(start),
|
||||
}).Info("Generated thumbnail")
|
||||
}).Debugf("Generated thumbnail %q", dst)
|
||||
|
||||
stat, err := os.Stat(string(dst))
|
||||
if err != nil {
|
||||
|
|
|
@ -191,7 +191,7 @@ func createThumbnail(
|
|||
"ActualWidth": width,
|
||||
"ActualHeight": height,
|
||||
"processTime": time.Since(start),
|
||||
}).Info("Generated thumbnail")
|
||||
}).Debugf("Generated thumbnail %q", dst)
|
||||
|
||||
stat, err := os.Stat(string(dst))
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue