Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ needs to be listed here.
### Contributors

- Felix Schlegel <[email protected]>
- Felix Schlegel <[email protected]>
- Franz Busch <[email protected]>
- FranzBusch <[email protected]>
- SHILPEE GUPTA <[email protected]>
- Yim Lee <[email protected]>
- mr-swifter <[email protected]>

**Updating this list**

Expand Down
4 changes: 2 additions & 2 deletions Sources/SwiftKafka/RDKafka/RDKafkaConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct RDKafkaConfig {
typealias LoggingClosure = (Int32, UnsafePointer<CChar>, UnsafePointer<CChar>) -> Void
var loggingClosure: LoggingClosure?

init() { }
init() {}
}

/// Create a new `rd_kafka_conf_t` object in memory and initialize it with the given configuration properties.
Expand Down Expand Up @@ -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))
Expand Down