[ckan-dev] Doubts regarding print statements in plugin.py
Matthew Fullerton
matt.fullerton at gmail.com
Thu Sep 29 08:23:18 UTC 2016
Printing will not work, but something like this will:
from logging import getLogger
...
log = getLogger(__name__)
log.info('Your message here')
It should then appear in the logs. When running in production setup
these should be somewhere like:
/var/log/apache2/ckan_default.error.log
/var/log/apache2/ckan_default.custom.log
--
Matt Fullerton
Software development and data science for open data and mobility
matt at crowdsalad.de
+49 89 7456 0495 / +49 176 5789 6501
http://www.crowdsalad.de
On 28 September 2016 at 12:32, Bijith komalan <bijith.komalan at gmail.com>
wrote:
> Hi,
>
> I have some doubts
>
> if I had put a print statement in plugin.py , where it is going to show up
> ? in paster.log or the UI?
>
> Do I need to restart ckan after any changes made to plugin.py?
>
> Bijith
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160929/abfbbefc/attachment-0003.html>
More information about the ckan-dev
mailing list