rm usage of getSimpleName, as it breaks logback logging schemes (#322)

This commit is contained in:
Chris Stewart 2019-02-03 10:51:31 -06:00 committed by GitHub
parent 89e14d3c78
commit f2f70171c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 12 additions and 14 deletions

View file

@ -4,7 +4,7 @@ import org.slf4j.LoggerFactory
import scala.io.Source
object BlockBench extends App {
private def logger = LoggerFactory.getLogger(this.getClass.getSimpleName)
private def logger = LoggerFactory.getLogger(this.getClass)
private def timeBlockParsing[R](block: () => R): Long = {
val t0 = System.currentTimeMillis()

View file

@ -7,7 +7,7 @@ import org.slf4j.LoggerFactory
class UInt5Test extends FlatSpec with MustMatchers with PropertyChecks {
private val logger = LoggerFactory.getLogger(this.getClass.getSimpleName)
private val logger = LoggerFactory.getLogger(this.getClass)
behavior of "UInt5"

View file

@ -11,7 +11,7 @@ import org.slf4j.LoggerFactory
import scala.util.{Success, Try}
class Bech32Test extends FlatSpec with MustMatchers {
private val logger = LoggerFactory.getLogger(this.getClass.getSimpleName)
private val logger = LoggerFactory.getLogger(this.getClass)
"Bech32" must "validly encode the test vectors from bitcoin core correctly" in {
val valid = Seq(
"A12UEL5L",

View file

@ -9,7 +9,7 @@ import scala.io.Source
* Created by chris on 7/15/16.
*/
class BlockTest extends FlatSpec with MustMatchers {
private val logger = LoggerFactory.getLogger(this.getClass.getSimpleName)
private val logger = LoggerFactory.getLogger(this.getClass)
def timeBlockParsing[R](block: => R): Long = {
val t0 = System.currentTimeMillis()

View file

@ -27,7 +27,7 @@ import scodec.bits.ByteVector
class LnInvoiceUnitTest extends FlatSpec with MustMatchers with PropertyChecks {
behavior of "LnInvoice"
private val logger = LoggerFactory.getLogger(getClass.getSimpleName)
private val logger = LoggerFactory.getLogger(getClass)
val hrpEmpty = LnHumanReadablePart(LnBitcoinMainNet)

View file

@ -8,7 +8,7 @@ import org.scalatest.{FlatSpec, MustMatchers}
import org.slf4j.LoggerFactory
class MilliSatoshisTest extends FlatSpec with MustMatchers {
private val logger = LoggerFactory.getLogger(this.getClass.getSimpleName)
private val logger = LoggerFactory.getLogger(this.getClass)
behavior of "MilliSatoshis"
it must "convert pico bitcoins to msat correctly" in {

View file

@ -13,7 +13,7 @@ import spray.json._
* Created by tom on 7/21/16.
*/
object SignatureHashTestCaseProtocol extends DefaultJsonProtocol {
private val logger = LoggerFactory.getLogger(this.getClass.getSimpleName)
private val logger = LoggerFactory.getLogger(this.getClass)
implicit object SignatureTestCaseProtocol
extends RootJsonFormat[SignatureHashTestCase] {
override def read(value: JsValue): SignatureHashTestCase = {

View file

@ -25,7 +25,7 @@ import scala.io.Source
* Created by chris on 7/14/15.
*/
class TransactionTest extends FlatSpec with MustMatchers {
private val logger = LoggerFactory.getLogger(this.getClass.getSimpleName)
private val logger = LoggerFactory.getLogger(this.getClass)
"Transaction" must "derive the correct txid from the transaction contents" in {
//https://btc.blockr.io/api/v1/tx/raw/cddda897b0e9322937ee1f4fd5d6147d60f04a0f4d3b461e4f87066ac3918f2a

View file

@ -27,7 +27,7 @@ import scala.util.Try
* Created by chris on 1/6/16.
*/
class ScriptInterpreterTest extends FlatSpec with MustMatchers {
private val logger = LoggerFactory.getLogger(this.getClass.getSimpleName)
private val logger = LoggerFactory.getLogger(this.getClass)
"ScriptInterpreter" must "evaluate all the scripts from the bitcoin core script_tests.json" in {
val source = Source.fromURL(getClass.getResource("/script_tests.json"))

View file

@ -9,7 +9,7 @@ import org.slf4j.LoggerFactory
* Created by chris on 1/26/16.
*/
class CryptoUtilTest extends FlatSpec with MustMatchers with PropertyChecks {
private val logger = LoggerFactory.getLogger(this.getClass.getSimpleName)
private val logger = LoggerFactory.getLogger(this.getClass)
"CryptoUtil" must "perform a SHA-1 hash" in {
val hash = CryptoUtil.sha1("")

View file

@ -40,7 +40,7 @@ class EclairRpcClient(val instance: EclairInstance)(
private val errorKey = "error"
implicit val m = ActorMaterializer.create(system)
implicit val ec: ExecutionContext = m.executionContext
private val logger = LoggerFactory.getLogger(this.getClass.getSimpleName)
private val logger = LoggerFactory.getLogger(this.getClass)
def getDaemon: EclairInstance = instance

View file

@ -15,8 +15,6 @@
<logger name="org.bitcoins.eclair.rpc.EclairRpcClient" level="TRACE"/>
<root level="INFO">
<appender-ref ref="STDOUT" />

View file

@ -17,7 +17,7 @@ object Deps {
val nativeLoaderV = "2.3.2"
val typesafeConfigV = "1.3.3"
val bitcoinsV = "4addc1-1549033158959-SNAPSHOT"
val bitcoinsV = "0.0.4.1-SNAPSHOT"
}
object Compile {