Skip to content

Commit

Permalink
Log message if there are no files to upload
Browse files Browse the repository at this point in the history
  • Loading branch information
0xnm committed Jan 29, 2025
1 parent af3a7df commit a603f9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class DdAndroidGradlePlugin @Inject constructor(
} else {
LOGGER.info(
"No native build tasks found for variant ${variant.name}," +
" no additionalSymbolFilesLocations provided, " +
" no additionalSymbolFilesLocations provided," +
" no NDK symbol file upload task created."
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ abstract class FileUploadTask @Inject constructor(
}

val mappingFiles = getFilesList()
if (mappingFiles.isEmpty()) return
if (mappingFiles.isEmpty()) {
LOGGER.warn("No mapping files to upload.")
return
}

// it can be an overlap between java and kotlin directories and since File doesn't override
// equals for set comparison, we will remove duplicates manually
Expand All @@ -171,6 +174,7 @@ abstract class FileUploadTask @Inject constructor(

val site = DatadogSite.valueOf(site)
val caughtErrors = mutableListOf<Exception>()

for (mappingFile in mappingFiles) {
LOGGER.info("Uploading ${mappingFile.fileType} file: ${mappingFile.file.absolutePath}")
try {
Expand Down

0 comments on commit a603f9c

Please sign in to comment.