-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pinyin -p
has debug output
#16
Comments
Many times the log is useful, not is debug. I will think about it, and I rarely used pinyin CLI, please tell me the necessary reason to remove the log. |
I understand that such output can be useful, my point of views are,
My suggestion is to give a Please consider. thanks. |
The
So now need a mechanism to pass that switch to |
You can var seg gse.Segmenter
seg.SkipLog = true and |
Thanks, but sorry I can't make it works -- If I comment off line 73,
I'll be getting nil pointer errors. Then I tried the following without commenting off line 73
but the error is the same:
Please help. Thx! |
You must |
Thanks a lot, fixed, will send in PR... |
v0.40.0
go1.14.3
gcc version 9.3.0
5.4.0-33-generic x86_64
Description
Is the extra output from
pinyin -p
intended?$ pinyin -p 银行 2020/10/08 22:29:30 Load the gse dictionary: "/home/tong/l/ws/Go/pkg/mod/github.com/go-ego/gse@v0.60.0/data/dict/dictionary.txt" 2020/10/08 22:29:32 Gse dictionary loaded finished. yin xing
This looks like debug output, and should have a way to disable it.
The text was updated successfully, but these errors were encountered: