Log the number of XTEA keys imported

This makes it a bit easier to determine if the keys are parsed
correctly.

Signed-off-by: Graham <gpe@openrs2.org>
Graham 3 years ago
parent b3d6b112d2
commit 0ec7736764
  1. 7
      archive/src/main/kotlin/org/openrs2/archive/key/KeyImporter.kt

@ -1,5 +1,6 @@
package org.openrs2.archive.key
import com.github.michaelbull.logging.InlineLogger
import org.openrs2.crypto.XteaKey
import org.openrs2.db.Database
import java.nio.file.Files
@ -40,6 +41,8 @@ public class KeyImporter @Inject constructor(
keys -= XteaKey.ZERO
logger.info { "Importing ${keys.size} keys" }
import(keys)
}
@ -149,4 +152,8 @@ public class KeyImporter @Inject constructor(
stmt.execute()
}
}
private companion object {
private val logger = InlineLogger()
}
}

Loading…
Cancel
Save