diff options
Diffstat (limited to 'src/restRequest.py')
-rw-r--r-- | src/restRequest.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/restRequest.py b/src/restRequest.py index 9a9c624..61d64c6 100644 --- a/src/restRequest.py +++ b/src/restRequest.py @@ -7,8 +7,10 @@ # (at your option) any later version. import email -from io import StringIO import json +import logging + +from io import StringIO class restRequest: def __init__(self): @@ -57,7 +59,7 @@ class restRequest: try: json_param = json.loads(body) except ValueError as e: - print ("Error: Json message incomplete") + logging.error("JSON message incomplete") return if "run" in json_param: |