Printing
This commit is contained in:
parent
078ee42f51
commit
6243b1b46a
@ -63,7 +63,12 @@ class InputDirectoryWatcher(@Autowired var coordinator: Coordinator): FileWatche
|
|||||||
val dirs = watchDirectories.filter { it.exists() && it.isDirectory }
|
val dirs = watchDirectories.filter { it.exists() && it.isDirectory }
|
||||||
if (dirs.isNotEmpty()) {
|
if (dirs.isNotEmpty()) {
|
||||||
val paths = dirs.joinToString("\n\t") { it.absolutePath }
|
val paths = dirs.joinToString("\n\t") { it.absolutePath }
|
||||||
log.info { "Watching directories:\n\t $paths" }
|
log.info { "Watching directories:\n\t$paths" }
|
||||||
|
|
||||||
|
for (dir in dirs) {
|
||||||
|
log.info { "Content present for path ${dir.absolutePath}" }
|
||||||
|
log.info { dir.listFiles()?.map { it.name }?.joinToString { "\n\t" } ?: "No files present.." }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//val errorConfiguredDirs = watchDirectories.filter { !it.isDirectory || !it.exists()}.joinToString("\n\t") { it.absolutePath }
|
//val errorConfiguredDirs = watchDirectories.filter { !it.isDirectory || !it.exists()}.joinToString("\n\t") { it.absolutePath }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user