aboutsummaryrefslogtreecommitdiff
path: root/inputs/TCPInput.py
diff options
context:
space:
mode:
Diffstat (limited to 'inputs/TCPInput.py')
-rw-r--r--inputs/TCPInput.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/inputs/TCPInput.py b/inputs/TCPInput.py
index 1517afa..197045f 100644
--- a/inputs/TCPInput.py
+++ b/inputs/TCPInput.py
@@ -1,6 +1,7 @@
import util.Strings as Strings
from operationscore.Input import *
import socket, json, time
+import logging as main_log
class TCPInput(Input):
def inputInit(self):
self.HOST = '' # Symbolic name meaning all available interfaces
@@ -16,9 +17,9 @@ class TCPInput(Input):
def sensingLoop(self):
data = self.conn.recv(self.BUFFER_SIZE)
- print data
+ main_log.debug('Incoming data', data)
if not data or 'end' in data: # data end, close socket
- print 'END!!'
+ main_log.debug('End in data')
self.IS_RESPONDING = 0
self.sock.close()