Closed ant1eicher closed 1 year ago
Totals | |
---|---|
Change from base Build 3698258076: | -0.1% |
Covered Lines: | 352 |
Relevant Lines: | 618 |
I must have left it there by mistake.
Thanks for the contribution!
Cool man. Happy to help!
On Mon, 27 Mar 2023 at 12:57, NicklasWallgren @.***> wrote:
I must have left it there by mistake.
Thanks for the contribution!
— Reply to this email directly, view it on GitHub https://github.com/NicklasWallgren/ewelink/pull/4#issuecomment-1484934064, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6O4GHTC3LLTAUTKYLV4LDW6FXDDANCNFSM6AAAAAAWINPO7Y . You are receiving this because you authored the thread.Message ID: @.***>
Each call to the library results in the entire json response object being outputted to stdout. In order to get around this I have to temporarily reassign os.Stdout to nil, call the command, then reassign os.Stdout.
If this response log output is required, perhaps it would be better to use a logger with 'debug' or accept a verbose parameter?
(btw nice library, thanks :)