Skip to content

Commit

Permalink
Merge pull request #5 from Cyberbeni/debug-logging-default
Browse files Browse the repository at this point in the history
Add default value for enable_debug_logging config
  • Loading branch information
Cyberbeni authored Nov 2, 2024
2 parents e28033f + b8d1ca4 commit f08c143
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Sources/Wiring/Config/GeneralConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ import Foundation
extension Config {
struct General: Decodable {
let mqtt: Mqtt
let enableDebugLogging: Bool
private let _enableDebugLogging: Bool?
var enableDebugLogging: Bool { _enableDebugLogging ?? false }

private enum CodingKeys: String, CodingKey {
case mqtt
case _enableDebugLogging = "enableDebugLogging"
}
}
}

0 comments on commit f08c143

Please sign in to comment.