diff options
author | Philip Paquette <pcpaquette@gmail.com> | 2019-05-20 13:01:38 -0400 |
---|---|---|
committer | Philip Paquette <pcpaquette@gmail.com> | 2019-05-20 13:11:11 -0400 |
commit | a0116e48d1d1aad6e79e9d7c1ff17ab7605f4d5e (patch) | |
tree | 0a6da0a019b506699773d9ed9a0dc065042e307d /diplomacy/integration | |
parent | 7d948fed1f9bfc40b17f9a057f75990cfd66c5f1 (diff) |
WebDip API - Logging phase when submitting orders
Diffstat (limited to 'diplomacy/integration')
-rw-r--r-- | diplomacy/integration/webdiplomacy_net/api.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/diplomacy/integration/webdiplomacy_net/api.py b/diplomacy/integration/webdiplomacy_net/api.py index a5fa94a..e391343 100644 --- a/diplomacy/integration/webdiplomacy_net/api.py +++ b/diplomacy/integration/webdiplomacy_net/api.py @@ -129,7 +129,7 @@ class API(): :type game: diplomacy.Game """ # Logging orders - LOGGER.info('[%s/%s] - Submitting orders: %s', game.game_id, power_name, orders) + LOGGER.info('[%s/%s/%s] - Submitting orders: %s', game.game_id, game.get_current_phase(), power_name, orders) # Converting orders to dict orders_dict = [Order(order, map_name=game.map_name, phase_type=game.phase_type) for order in orders] @@ -195,8 +195,9 @@ class API(): for unit in submitted_orders: if submitted_orders[unit] != received_orders.get(unit, ''): all_orders_set = False - LOGGER.warning('[%s/%s]. Submitted: "%s" - Server has: "%s".', - game.game_id, power_name, submitted_orders[unit], received_orders.get(unit, '')) + LOGGER.warning('[%s/%s/%s]. Submitted: "%s" - Server has: "%s".', + game.game_id, game.get_current_phase(), power_name, + submitted_orders[unit], received_orders.get(unit, '')) # Returning status return all_orders_set |