File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package convert
22
33import (
44 "encoding/json"
5+ "log"
56 "reflect"
67 "sort"
78
@@ -54,6 +55,9 @@ func ConfigSchemaToProto(b *configschema.Block) *proto.Schema_Block {
5455func protoStringKind (k configschema.StringKind ) proto.StringKind {
5556 switch k {
5657 default :
58+ log .Printf ("[TRACE] unexpected configschema.StringKind: %d" , k )
59+ return proto .StringKind_PLAIN
60+ case configschema .StringPlain :
5761 return proto .StringKind_PLAIN
5862 case configschema .StringMarkdown :
5963 return proto .StringKind_MARKDOWN
@@ -133,6 +137,9 @@ func ProtoToConfigSchema(b *proto.Schema_Block) *configschema.Block {
133137func schemaStringKind (k proto.StringKind ) configschema.StringKind {
134138 switch k {
135139 default :
140+ log .Printf ("[TRACE] unexpected proto.StringKind: %d" , k )
141+ return configschema .StringPlain
142+ case proto .StringKind_PLAIN :
136143 return configschema .StringPlain
137144 case proto .StringKind_MARKDOWN :
138145 return configschema .StringMarkdown
You can’t perform that action at this time.
0 commit comments