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

log verbosity of new server mode #796

Open
otizonaizit opened this issue May 28, 2024 · 1 comment
Open

log verbosity of new server mode #796

otizonaizit opened this issue May 28, 2024 · 1 comment

Comments

@otizonaizit
Copy link
Member

When running the new server mode as a systemd service, everything the bots would print on stdout lands into the journal. This is suboptimal. For example:

May 28 15:21:57 python python[35592]: Finished (- rounds): Smart Eating Players (4) vs Group0 (2)
May 28 15:21:57 python python[35701]: True (30, 3) {0: (None, None), 1: (None, None), 'graph': <networkx.classes.graph.Graph object at 0x7fd958c62390>}
May 28 15:21:57 python python[35701]: True (29, 1) {0: (None, None), 1: (None, None), 'graph': <networkx.classes.graph.Graph object at 0x7fd958c62390>}
May 28 15:21:57 python python[35701]: True (29, 3) {0: (None, None), 1: (None, None), 'graph': <networkx.classes.graph.Graph object at 0x7fd958c62390>}
May 28 15:21:57 python python[35701]: True (28, 1) {0: (None, None), 1: (None, None), 'graph': <networkx.classes.graph.Graph object at 0x7fd958c62390>}
May 28 15:21:57 python python[35701]: True (28, 3) {0: (None, None), 1: (None, None), 'graph': <networkx.classes.graph.Graph object at 0x7fd958c62390>}
May 28 15:21:57 python python[35701]: True (27, 1) {0: (None, None), 1: (None, None), 'graph': <networkx.classes.graph.Graph object at 0x7fd958c62390>}
May 28 15:21:57 python python[35701]: True (27, 3) {0: (None, None), 1: (None, None), 'graph': <networkx.classes.graph.Graph object at 0x7fd958c62390>}
May 28 15:21:57 python python[35701]: True (26, 1) {0: (None, None), 1: (None, None), 'graph': <networkx.classes.graph.Graph object at 0x7fd958c62390>}

Also, the entries in the journal are prefixed by the string python. Maybe we should use setproctitle to set the process name to something more useful like pelita-server or so...

@Debilski
Copy link
Member

In my test it all writes pelita-server. Doesn’t make it much more useful though.

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

No branches or pull requests

2 participants