Skip to content

Remove warning during write#59

Merged
cezmunsta merged 1 commit into
masterfrom
write-no-warning
Aug 5, 2021
Merged

Remove warning during write#59
cezmunsta merged 1 commit into
masterfrom
write-no-warning

Conversation

@cezmunsta
Copy link
Copy Markdown
Owner

When writing a new connection, an unnecessary warning iappears:

level=warning msg="Unable to find connection for: xxx"
  • Added currentCommand var to cmd and set it during the
    connection commands for ease of detection.
  • Updated cmd.getRawConnection to bypass warnings when
    currentCommand == "write"
  • Updated cmd.TestGetRawConnection to ensure that the
    correct error is raised for the connection commands

Fixes #58

When writing a new connection, an unnecessary warning iappears:
```shell
level=warning msg="Unable to find connection for: xxx"
```

* Added `currentCommand` var to `cmd` and set it during the
  connection commands for ease of detection.
* Updated `cmd.getRawConnection` to bypass warnings when
  `currentCommand == "write"`
* Updated `cmd.TestGetRawConnection` to ensure that the
  correct error is raised for the connection commands

Fixes #58
@cezmunsta cezmunsta added the enhancement New feature or request label Aug 5, 2021
@cezmunsta cezmunsta self-assigned this Aug 5, 2021
@cezmunsta cezmunsta merged commit b4e9209 into master Aug 5, 2021
@cezmunsta cezmunsta deleted the write-no-warning branch January 30, 2022 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove warning during write

1 participant