Hi,
The warnings we through are python warnings. So you do that the same way you would do for any python warning (see https://stackoverflow.com/questions/22373927/get-traceback-of-warnings for example).