Skip to content

Commit 7e7bdd4

Browse files
committed
Log database lookups more verbosely
1 parent 40ae4d1 commit 7e7bdd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/main/kotlin/org/javacs/kt/externalsources/ClassContentProvider.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ class ClassContentProvider(
3535
* If the file is inside a source archive, the source code is returned as is.
3636
*/
3737
fun contentOf(uri: KlsURI): Pair<KlsURI, String> {
38+
LOG.info("Resolving {} for contents", uri)
3839
val resolvedUri = sourceArchiveProvider.fetchSourceArchive(uri.archivePath)?.let(uri.withSource(true)::withArchivePath) ?: uri
3940
val key = resolvedUri.toString()
4041
val (contents, extension) = cachedContents[key] ?: run {
41-
LOG.info("Finding contents of {}", describeURI(resolvedUri.fileUri))
42+
LOG.info("Reading contents of {}", describeURI(resolvedUri.fileUri))
4243
tryReadContentOf(resolvedUri)
4344
?: tryReadContentOf(resolvedUri.withFileExtension("class"))
4445
?: tryReadContentOf(resolvedUri.withFileExtension("java"))

0 commit comments

Comments
 (0)