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

Use qInfo instead of qFatal for normal logging #3998

Conversation

Krzmbrzl
Copy link
Member

For some reason qFatal has been used to log information such as the
version requested by the --version argument.
abdb500 made qFatal exit with an
exit status of one leading to successful operations that happened
to contain some print-out to leave an exit status of 1.

Fixes #3911

For some reason qFatal has been used to log information such as the
version requested by the --version argument.
abdb500 made qFatal exit with an
exit status of one leading to successful operations that happened
to contain some print-out to leave an exit status of 1 (mumble-voip#3911).
@Krzmbrzl Krzmbrzl added server bug A bug (error) in the software labels Mar 18, 2020
@Krzmbrzl Krzmbrzl merged commit f8ee536 into mumble-voip:master Mar 18, 2020
@Krzmbrzl Krzmbrzl deleted the murmur-dont-use-qFatal-for-normal-logging branch April 4, 2020 11:54
sudoforge pushed a commit to sudoforge/docker-mumble-server that referenced this pull request Jan 31, 2021
Using -supw currently throws a fatal error and exits the program. It has
been fixed in the upstream project by commit d8203ba94 [1], but has not
yet been included in a release. To bypass the issue and allow the entrypoint
script to proceed, we are ignoring the erroneous exit code by executing
`true` if the invocation fails.

This was previously fixed in commit b1229e0, but was erroneously
removed in commit b7a0867. Care should be taken to ensure the
upstream release _actually_ contains the fix before reverting this
commit.

[1]: mumble-voip/mumble@d8203ba

closes #121
references #92 mumble-voip/mumble#3911 mumble-voip/mumble#3998 mumble-voip/mumble#4728
sudoforge pushed a commit to sudoforge/docker-mumble-server that referenced this pull request Jan 31, 2021
Using -supw currently throws a fatal error and exits the program. It has
been fixed in the upstream project by commit d8203ba94 [1], but has not
yet been included in a release. To bypass the issue and allow the entrypoint
script to proceed, we are ignoring the erroneous exit code by executing
`true` if the invocation fails.

This was previously fixed in commit b1229e0, but was erroneously
removed in commit b7a0867. Care should be taken to ensure the
upstream release _actually_ contains the fix before reverting this
commit.

[1]: mumble-voip/mumble@d8203ba

closes #121
references #92 mumble-voip/mumble#3911 mumble-voip/mumble#3998 mumble-voip/mumble#4728
Krzmbrzl added a commit that referenced this pull request Feb 6, 2021
…ormal logging"

For some reason qFatal has been used to log information such as the
version requested by the --version argument.
abdb500 made qFatal exit with an
exit status of one leading to successful operations that happened
to contain some print-out to leave an exit status of 1 (#3911).

Note: This is a backport of #3998
sudoforge pushed a commit to sudoforge/docker-mumble-server that referenced this pull request Feb 10, 2021
… failure"

This reverts commit 2053b04.

```
➜ git log --grep "$(git log -1 --format='%s' d8203ba94d528b092e0ff5a52a51af28f8f592f1)" refs/tags/1.3.4
commit 9fc1c188cf23612e0a2083af20735c1ee1571a07
Author: Robert Adam <dev@robert-adam.de>
Date:   Wed Mar 18 12:52:20 2020 +0100

    src/murmur/main.cpp: Use qInfo instead of qFatal for normal logging.

    For some reason qFatal has been used to log information such as the
    version requested by the --version argument.
    abdb5004bb92b28271673e33df9cc3e314f5711a made qFatal exit with an
    exit status of one leading to successful operations that happened
    to contain some print-out to leave an exit status of 1 (#3911).
```

This was further verified by inspecting commit 9fc1c188cf23612e0a2083af20735c1ee1571a07 manually to ensure it contained the appropriate delta.

refs #121 mumble-voip/mumble#3911 mumble-voip/mumble#3998 mumble-voip/mumble#4728
sudoforge pushed a commit to sudoforge/docker-mumble-server that referenced this pull request Feb 10, 2021
… failure"

This reverts commit 2053b04.

```
➜ git log --grep "$(git log -1 --format='%s' d8203ba94d528b092e0ff5a52a51af28f8f592f1)" refs/tags/1.3.4
commit 9fc1c188cf23612e0a2083af20735c1ee1571a07
Author: Robert Adam <dev@robert-adam.de>
Date:   Wed Mar 18 12:52:20 2020 +0100

    src/murmur/main.cpp: Use qInfo instead of qFatal for normal logging.

    For some reason qFatal has been used to log information such as the
    version requested by the --version argument.
    abdb5004bb92b28271673e33df9cc3e314f5711a made qFatal exit with an
    exit status of one leading to successful operations that happened
    to contain some print-out to leave an exit status of 1 (#3911).
```

This was further verified by inspecting commit 9fc1c188cf23612e0a2083af20735c1ee1571a07 manually to ensure it contained the appropriate delta.

refs #121 mumble-voip/mumble#3911 mumble-voip/mumble#3998 mumble-voip/mumble#4728
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug (error) in the software server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The command setting superuser password returns exit code 1 even if successful.
2 participants