diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index c081ec6d..533b37d7 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -12,8 +12,12 @@ needs to be listed here. ### Contributors - Felix Schlegel +- Felix Schlegel +- Franz Busch - FranzBusch - SHILPEE GUPTA <78029920+shilpeegupta14@users.noreply.github.com> +- Yim Lee +- mr-swifter <103502437+mr-swifter@users.noreply.github.com> **Updating this list** diff --git a/Sources/SwiftKafka/RDKafka/RDKafkaConfig.swift b/Sources/SwiftKafka/RDKafka/RDKafkaConfig.swift index 4173be82..398985ff 100644 --- a/Sources/SwiftKafka/RDKafka/RDKafkaConfig.swift +++ b/Sources/SwiftKafka/RDKafka/RDKafkaConfig.swift @@ -26,7 +26,7 @@ struct RDKafkaConfig { typealias LoggingClosure = (Int32, UnsafePointer, UnsafePointer) -> Void var loggingClosure: LoggingClosure? - init() { } + init() {} } /// Create a new `rd_kafka_conf_t` object in memory and initialize it with the given configuration properties. @@ -140,7 +140,7 @@ struct RDKafkaConfig { let loggingClosure: RDKafkaConfig.CapturedClosures.LoggingClosure = { level, fac, buf in // Mapping according to https://en.wikipedia.org/wiki/Syslog switch level { - case 0 ... 2: /* Emergency, Alert, Critical */ + case 0...2: /* Emergency, Alert, Critical */ logger.critical(Logger.Message(stringLiteral: String(cString: buf)), source: String(cString: fac)) case 3: /* Error */ logger.error(Logger.Message(stringLiteral: String(cString: buf)), source: String(cString: fac))