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

FS#2711 - logread -r gives wrong return-code #8373

Closed
openwrt-bot opened this issue Jan 2, 2020 · 1 comment
Closed

FS#2711 - logread -r gives wrong return-code #8373

openwrt-bot opened this issue Jan 2, 2020 · 1 comment
Labels

Comments

@openwrt-bot
Copy link

nudelkiste:

what I am doing:

root@ffsaar-HammelsbergVa:# logread -?
-r Stream message to a server
root@ffsaar-HammelsbergVa:
# logread -r syslog.ffsaar 515
root@ffsaar-HammelsbergVa:# echo $?
0
root@ffsaar-HammelsbergVa:
#

Due to the return-code "0", I was thinking that everything went fine and my log was perfectly streamed to the server, but:

root@ffsaar-HammelsbergVa:# logread -l 1
Wed Jan 1 21:52:47 2020 daemon.info logread[3904]: failed to send log data to syslog.ffsaar:515 via tcp
root@ffsaar-HammelsbergVa:
#

expected behaviour:
If there is some trouble sending the data, then the return-code of logread -r should be anything but "0", right?

ENV:
OpenWrt 18.06-SNAPSHOT, r7835+25-89808e211c
gluon-ffsaar 1.8.0 / gluon v2019.1

@openwrt-bot
Copy link
Author

nudelkiste:

originally this bug was reported here:
freifunk-gluon/gluon#1902

was told that "the upstream Bugtracker is the better place for this issue".
As I have no idea what/where this might be, I hope here there is the right place to do so?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant