hex

hex.git
git clone git://git.lenczewski.org/hex.git
Log | Files | Refs

commit e7278f0b155179a0f277aee63db05fa947c16a29
parent 0ee5d6cf60fc61fcc344b807a8c1b44291103cfa
Author: MikoĊ‚aj Lenczewski <mblenczewski@gmail.com>
Date:   Thu,  2 Jan 2025 14:53:58 +0000

Fix server verbosity flag check

Diffstat:
MREADME.txt | 5+++--
Mserver/include/hex_server.h | 2+-
Mtournament-host.py | 1+
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/README.txt b/README.txt @@ -48,8 +48,9 @@ $ sudo ./uninstall # must be ran as root, to remove added users hex-server: Usage ------------------------------------------------------------------------------ -To run a tournament, you can use the included `tournament-host.py` script. Its -usage is as follows: +To run a tournament, you can use the included `tournament-host.py` script. To +log debug output from the server, ensure that you pass the `-v` flag. The +scripts usage is as follows: ```sh $ sudo ./tournament-host.py [-hv] <tournament-schedule.txt> <output.log> \ diff --git a/server/include/hex_server.h b/server/include/hex_server.h @@ -130,7 +130,7 @@ dbglog(char *fmt, ...) { va_list va; - if (opts.verbose) + if (!opts.verbose) return; va_start(va, fmt); diff --git a/tournament-host.py b/tournament-host.py @@ -56,6 +56,7 @@ arg_parser.add_argument('-m', '--memory', type=int, help='per-agent memory hard-limit (MiB)') arg_parser.add_argument('-v', '--verbose', + default=False, action='store_true', help='enabling verbose logging for the server')