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

Surpressing broadcast output #425

Merged

Conversation

Dashboy1998
Copy link
Contributor

Context

The function broadcast command returns the result of rcon-cli. So a two minute reboot timer shows

palworld-server  | time="2024-02-21T17:33:00-05:00" level=info msg=starting iteration=0 job.command="bash /home/steam/server/auto_reboot.sh" job.position=0 job.schedule="33 17 * * *"
palworld-server  | time="2024-02-21T17:33:00-05:00" level=info msg="Broadcasted: The_Server_will_reboot_in_2_minutes" channel=stdout iteration=0 job.command="bash /home/steam/server/auto_reboot.sh" job.position=0 job.schedule="33 17 * * *"
palworld-server  | time="2024-02-21T17:34:00-05:00" level=info msg="Broadcasted: The_Server_will_reboot_in_1_minutes" channel=stdout iteration=0 job.command="bash /home/steam/server/auto_reboot.sh" job.position=0 job.schedule="33 17 * * *"
palworld-server  | time="2024-02-21T17:35:00-05:00" level=info msg="Complete Save" channel=stdout iteration=0 job.command="bash /home/steam/server/auto_reboot.sh" job.position=0 job.schedule="33 17 * * *"
palworld-server  | time="2024-02-21T17:35:00-05:00" level=info msg=Shutdown... channel=stdout iteration=0 job.command="bash /home/steam/server/auto_reboot.sh" job.position=0 job.schedule="33 17 * * *"
palworld-server  | time="2024-02-21T17:35:00-05:00" level=info msg="job succeeded" iteration=0 job.command="bash /home/steam/server/auto_reboot.sh" job.position=0 job.schedule="33 17 * * *"

Choices

Suppressing the returns message for rcon-cli so we see this for reboot with a two minute timer

palworld-server  | time="2024-02-21T17:37:00-05:00" level=info msg=starting iteration=0 job.command="bash /home/steam/server/auto_reboot.sh" job.position=0 job.schedule="37 17 * * *"
palworld-server  | time="2024-02-21T17:39:00-05:00" level=info msg="Complete Save" channel=stdout iteration=0 job.command="bash /home/steam/server/auto_reboot.sh" job.position=0 job.schedule="37 17 * * *"
palworld-server  | time="2024-02-21T17:39:00-05:00" level=info msg=Shutdown... channel=stdout iteration=0 job.command="bash /home/steam/server/auto_reboot.sh" job.position=0 job.schedule="37 17 * * *"
palworld-server  | time="2024-02-21T17:39:00-05:00" level=info msg="job succeeded" iteration=0 job.command="bash /home/steam/server/auto_reboot.sh" job.position=0 job.schedule="37 17 * * *"

Test instructions

  1. Verify reboot still works
  2. Verify update still works
  3. If in branch verify player logging still works

Checklist before requesting a review

  • I have performed a self-review of my code
  • I've added documentation about this change to the README.
  • I've not introduced breaking changes.

@Dashboy1998 Dashboy1998 mentioned this pull request Feb 21, 2024
3 tasks
@thijsvanloef thijsvanloef merged commit 4b52615 into thijsvanloef:main Feb 22, 2024
10 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.

None yet

2 participants