Skip to content

Commit e975283

Browse files
author
Julian Kast
committed
ReFormatted Log.w statements for uploading static icons and Overwrite property in uploadFiles and uploadFile
1 parent c4d6e48 commit e975283

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

base/src/main/java/com/smartdevicelink/managers/file/BaseFileManager.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,12 +325,12 @@ public void onResponse(int correlationId, RPCResponse response) {
325325
*/
326326
public void uploadFile(@NonNull final SdlFile file, final CompletionListener listener) {
327327
if (file.isStaticIcon()) {
328-
Log.w(TAG, "Static icons don't need to be uploaded");
328+
Log.w(TAG, String.format("%s is a static icon and doesn't need to be uploaded", file.getName()));
329329
listener.onComplete(true);
330330
return;
331331
}
332332
if (!file.isOverwrite() && hasUploadedFile(file)) {
333-
Log.w(TAG, "Files that have already uploaded and have an Overwrite property set to false will not be re-Upload");
333+
Log.w(TAG, String.format("%s has already been uploaded and the overwrite property is set to false. It will not be uploaded again", file.getName()));
334334
listener.onComplete(true);
335335
return;
336336
}
@@ -398,11 +398,11 @@ public void uploadFiles(@NonNull List<? extends SdlFile> files, final MultipleFi
398398
final List<PutFile> putFileRequests = new ArrayList<>();
399399
for (SdlFile file : files) {
400400
if (file.isStaticIcon()) {
401-
Log.w(TAG, "Static icons don't need to be uploaded");
401+
Log.w(TAG, String.format("%s is a static icon and doesn't need to be uploaded", file.getName()));
402402
continue;
403403
}
404404
if (!file.isOverwrite() && hasUploadedFile(file)) {
405-
Log.w(TAG, "Files that have already uploaded and have an Overwrite property set to false will not be re-Upload");
405+
Log.w(TAG, String.format("%s has already been uploaded and the overwrite property is set to false. It will not be uploaded again", file.getName()));
406406
continue;
407407
}
408408
putFileRequests.add(createPutFile(file));

0 commit comments

Comments
 (0)