Varun Joshi
04/08/2021, 5:46 PMVarun Joshi
04/08/2021, 5:47 PMKevin Kho
Kevin Kho
Varun Joshi
04/09/2021, 4:12 AMChris White
Varun Joshi
04/12/2021, 4:22 AMVarun Joshi
04/13/2021, 12:03 PMChris White
Varun Joshi
04/19/2021, 6:19 AMprint('data recieved|logtime:',datetime.datetime.now(), '|Source ID:',source_database_id)
data
received
logtime
04-19-2021 114900
Source ID
ABCVarun Joshi
04/19/2021, 6:22 AMKevin Kho
Varun Joshi
04/20/2021, 7:14 AMVarun Joshi
04/22/2021, 7:46 AMChris White
Varun Joshi
05/10/2021, 6:23 AM<http://logger.info|logger.info>(str(123)+ "error:" + exception_error)
Chris White
exception_error
is — usually this sort of error arises when you use templating strings like (notice the commas)
<http://logger.info|logger.info>("hi %s", "chris", "unused string")
Varun Joshi
05/12/2021, 4:33 AMexception_error
would be the
except Exception as exception_error:
<http://logger.info|logger.info>(str(123)+ "error:" + exception_error)
It'd be safe to presume that the exception_error will be a string, no?Chris White
<http://logging.info|logging.info>(“Error raised.”, exc_info=True)
That way you don’t need to worry about the string formatting issues you’re running into + if will log the full trace back