Logging
This commit is contained in:
parent
2d2929da8f
commit
612467495a
@ -61,6 +61,7 @@ logging.basicConfig(
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
logger.info(f"Log level set to {configured_level}")
|
||||||
|
|
||||||
class EventsPullerThread(threading.Thread):
|
class EventsPullerThread(threading.Thread):
|
||||||
|
|
||||||
@ -154,6 +155,8 @@ class EventsPullerThread(threading.Thread):
|
|||||||
try:
|
try:
|
||||||
logging.debug("Looking for new available events")
|
logging.debug("Looking for new available events")
|
||||||
rows = self.getEventsAvailable(connection=self.connection)
|
rows = self.getEventsAvailable(connection=self.connection)
|
||||||
|
if (len(rows) == 0):
|
||||||
|
logger.debug("No events found..")
|
||||||
for row in rows:
|
for row in rows:
|
||||||
if (row is not None):
|
if (row is not None):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user