[ckan-dev] How to debug custom extension.

Stefan Oderbolz stefan.oderbolz at liip.ch
Thu Nov 13 16:18:40 UTC 2014


Yes that's what I mean. So can you see any log messages of the custom
extension? Does it even have any?

On Wed, Nov 12, 2014 at 8:42 AM, Henrik Aagaard Jørgensen <BU1G at tmf.kk.dk>
wrote:

>  I’ve set, in production.ini, [logger_ckanext] level = DEBUG, if that is
> what you mean?
>
>
>
> *Fra:* ckan-dev [mailto:ckan-dev-bounces at lists.okfn.org] *På vegne af *Stefan
> Oderbolz
> *Sendt:* 11. november 2014 16:24
> *Til:* CKAN Development Discussions
> *Emne:* Re: [ckan-dev] How to debug custom extension.
>
>
>
> Hi Henrik,
>
>
>
> did you configure the logging for your custom extension? You can do this
> in the *.ini file and then you have a much better insight in what happens.
>
>
>
> - Stefan
>
>
>
> On Tue, Nov 11, 2014 at 2:55 PM, Henrik Aagaard Jørgensen <BU1G at tmf.kk.dk>
> wrote:
>
> I’ve just installed CKAN 2.2.1 on a completely new server, running Ubuntu
> 12.04. I’ve followed the docs step by step for a package installation.
>
>
>
> Firstly, the ckan_default.error.log outputs:
>
> Exception AttributeError: “’NoneType’ object has no attribute ‘clearing’
> in….
>
>
>
> This is when I’ve not added my custom extension to the production.ini
> file. Just a clean install with FileStore, DataStore and Datapusher.
>
>
>
> When I activate my custom extension, which runs fine on my local machine,
> nothing happens.
>
> Everything runs as if I haven’t added the custom extension to
> production.ini.
>
>
>
> No errors in the log or anything, and no change in theme which the
> extension perfectly shows on my local machine.
>
>
>
> How should I debug when no errors occurs?
>
>
> _______________________________________________
> 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
>
>
>
>
>
> --
>
> Liip AG  // Limmatstrasse 183 //  CH-8005 Zürich
> Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
>
> _______________________________________________
> 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
>
>


-- 
Liip AG  // Limmatstrasse 183 //  CH-8005 Zürich
Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20141113/cf09dcd7/attachment-0003.html>


More information about the ckan-dev mailing list