Skip to content

Commit 9739104

Browse files
committed
docs(model): Improve unarchive() functions docs and log messages
Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent e9b7aa6 commit 9739104

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

model/src/main/kotlin/utils/FileArchiver.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,17 +110,17 @@ class FileArchiver(
110110
}
111111

112112
/**
113-
* Unarchive the archive corresponding to [provenance].
113+
* Unarchive the data for [provenance] to [directory]. Return true on success or false on failure.
114114
*/
115115
fun unarchive(directory: File, provenance: KnownProvenance): Boolean {
116116
if (!storage.hasData(provenance)) {
117-
logger.info { "Could not find archive of directory '$directory'." }
117+
logger.info { "Could not find an archive for $provenance." }
118118
return false
119119
}
120120

121121
val (zipInputStream, readDuration) = measureTimedValue { storage.getData(provenance) }
122122

123-
logger.info { "Read archive of directory '$directory' from storage in $readDuration." }
123+
logger.info { "Got archive for $provenance in $readDuration." }
124124

125125
if (zipInputStream == null) return false
126126

0 commit comments

Comments
 (0)