@@ -173,14 +173,14 @@ private void performCheck(Download download, IdsClient injectedIdsClient) {
173173 idsClient = new IdsClient (getDownloadUrl (download .getFacilityName (),download .getTransport ()));
174174 }
175175 if (!download .getIsEmailSent () && download .getStatus () == DownloadStatus .COMPLETE ){
176- logger .info ("Download COMPLETE for " + download .getFileName () + "; checking whether to send email..." );
176+ logger .info ("Download COMPLETE for " + download .getFileName () + " " + download . getId () + " ; checking whether to send email..." );
177177 download .setIsEmailSent (true );
178178 em .persist (download );
179179 em .flush ();
180180 lastChecks .remove (download .getId ());
181181 sendDownloadReadyEmail (download );
182182 } else if (download .getTransport ().matches ("https|http" ) && idsClient .isPrepared (download .getPreparedId ())){
183- logger .info ("Download (http[s]) for " + download .getFileName () + " is Prepared, so setting COMPLETE and checking email..." );
183+ logger .info ("Download (http[s]) for " + download .getFileName () + " " + download . getId () + " is Prepared, so setting COMPLETE and checking email..." );
184184 download .setStatus (DownloadStatus .COMPLETE );
185185 download .setCompletedAt (new Date ());
186186 download .setIsEmailSent (true );
@@ -290,10 +290,10 @@ public static void prepareDownload(DownloadRepository downloadRepository, Downlo
290290 }
291291
292292 if (download .getIsTwoLevel () || !download .getTransport ().matches ("https|http" )) {
293- logger .info ("Setting Download status RESTORING for " + download .getFileName ());
293+ logger .info ("Setting Download status RESTORING for " + download .getFileName () + " " + download . getId () );
294294 download .setStatus (DownloadStatus .RESTORING );
295295 } else {
296- logger .info ("Setting Download status COMPLETE for " + download .getFileName ());
296+ logger .info ("Setting Download status COMPLETE for " + download .getFileName () + " " + download . getId () );
297297 download .setStatus (DownloadStatus .COMPLETE );
298298 download .setCompletedAt (new Date ());
299299 }
0 commit comments