From de872cdfa665b21b4683430956ed17cb441edb0a Mon Sep 17 00:00:00 2001 From: A_D Date: Fri, 7 Aug 2020 15:46:46 +0200 Subject: [PATCH] Added warning log messages --- plugins/eddn.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/eddn.py b/plugins/eddn.py index 877573e2..b16fc98b 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -639,18 +639,21 @@ def journal_entry( # add mandatory StarSystem, StarPos and SystemAddress properties to Scan events if 'StarSystem' not in entry: if not system: + logger.warn("system is None, can't add StarSystem") return "system is None, can't add StarSystem" entry['StarSystem'] = system if 'StarPos' not in entry: if not this.coordinates: + logger.warn("this.coordinates is None, can't add StarPos") return "this.coordinates is None, can't add StarPos" entry['StarPos'] = list(this.coordinates) if 'SystemAddress' not in entry: if not this.systemaddress: + logger.warn("this.systemaddress is None, can't add SystemAddress") return "this.systemaddress is None, can't add SystemAddress" entry['SystemAddress'] = this.systemaddress