Skip to content

Commit b8d1ca4

Browse files
committed
Add default value for enable_debug_logging config
1 parent e28033f commit b8d1ca4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Sources/Wiring/Config/GeneralConfig.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ import Foundation
33
extension Config {
44
struct General: Decodable {
55
let mqtt: Mqtt
6-
let enableDebugLogging: Bool
6+
private let _enableDebugLogging: Bool?
7+
var enableDebugLogging: Bool { _enableDebugLogging ?? false }
8+
9+
private enum CodingKeys: String, CodingKey {
10+
case mqtt
11+
case _enableDebugLogging = "enableDebugLogging"
12+
}
713
}
814
}

0 commit comments

Comments
 (0)