diff options
| author | Shulhan <ms@kilabit.info> | 2023-05-20 13:42:39 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-05-20 13:44:07 +0700 |
| commit | 3eae1d3df5eeef14f9e8389895bb6b835ac2cf78 (patch) | |
| tree | f35ca6c111bed2ecf85ada965accf22ce83d3e8c /lib/email | |
| parent | f43b8ead50575c6a279bef403af0204df98323c9 (diff) | |
| download | pakakeh.go-3eae1d3df5eeef14f9e8389895bb6b835ac2cf78.tar.xz | |
all: remove any usage of debug.Value in all packages
Using global debug value for all packages turns out is not a good
idea.
Diffstat (limited to 'lib/email')
| -rw-r--r-- | lib/email/field.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/email/field.go b/lib/email/field.go index dfe92ad2..8d757b52 100644 --- a/lib/email/field.go +++ b/lib/email/field.go @@ -7,13 +7,11 @@ package email import ( "bytes" "fmt" - "log" "strconv" "time" "github.com/shuLhan/share/lib/ascii" libbytes "github.com/shuLhan/share/lib/bytes" - "github.com/shuLhan/share/lib/debug" libtime "github.com/shuLhan/share/lib/time" ) @@ -153,9 +151,6 @@ func ParseField(raw []byte) (field *Field, rest []byte, err error) { invalid: if x < len(raw) { - if debug.Value >= 3 { - log.Printf("! email: invalid field '%s'\n", raw[:x]) - } rest = raw[x:] } return nil, rest, err |
