Skip to content
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

conn: remove the log.Errorf for non-NFS protocol errors #133

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

rminnich
Copy link
Contributor

The current code is calling log.Errorf for file system errors. File system errors can be frequent, as in a shell searching $PATH.

These errors will be visible to the NFS client, and the NFS server are very confusing when running shells on NFS-mounted file systems, since the shell will handle the error.

The shell is just one example; searches of LD_LIBRARY_PATH, /usr/include, etc: all produce copiuos error messages that are not needed. The error is returned to the client and can be handled there.

Note that if there is a protocol-level error, such as failure to return a response packet, the error prints will still happen. In that case, it may be appropriate.

Fixes #117.

The current code is calling log.Errorf for file system errors.
File system errors can be frequent, as in a shell searching $PATH.

These errors will be visible to the NFS client, and the NFS server
are very confusing when running shells on NFS-mounted file
systems, since the shell will handle the error.

The shell is just one example; searches of LD_LIBRARY_PATH,
/usr/include, etc: all produce copiuos error messages that
are not needed. The error is returned to the client and
can be handled there.

Note that if there is a protocol-level error, such as failure
to return a response packet, the error prints will still happen.
In that case, it may be appropriate.

Fixes willscott#117.

Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
@willscott willscott merged commit 91bc389 into willscott:master Apr 25, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unnecessary error messages for non-errors
2 participants