]> Cypherpunks.ru repositories - nncp.git/commitdiff
Fix boolean variable printing
authorSergey Matveev <stargrave@stargrave.org>
Sat, 20 Feb 2021 11:16:45 +0000 (14:16 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 20 Feb 2021 17:26:19 +0000 (20:26 +0300)
src/log.go

index 5c98bd7e14916427c236553fea506f39f9668d61..25a494626a9d403e93421b9e36f371fa8076f87d 100644 (file)
@@ -43,6 +43,8 @@ func (les LEs) Rec() string {
                switch v := le.V.(type) {
                case int, int8, uint8, int64, uint64:
                        val = fmt.Sprintf("%d", v)
+               case bool:
+                       val = fmt.Sprintf("%v", v)
                default:
                        val = fmt.Sprintf("%s", v)
                }