@@ -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 {
0 commit comments