Running trac-admin in debugging/verbose mode

92 views
Skip to first unread message

Emerson Castañeda

unread,
Jun 5, 2017, 8:11:30 AM6/5/17
to trac...@googlegroups.com
Hi


I've modified the setup process for a plugin and now getting a error message during trac-admin <env> upgrade command that does not drive me clearly to the especific issue. Additionally in trac's log is nothing referent to the error, it's there something else i need to activate?

I would like to know if there is a way to run trac-admin in debugging mode or activate it to be more verbose in order to generate more debugging information, I have reviewed the available options without success

Thanks for your time.

Regards

MC

RjOllos

unread,
Jun 5, 2017, 8:38:49 AM6/5/17
to Trac Development


On Monday, June 5, 2017 at 8:11:30 AM UTC-4, MC wrote:
Hi


I've modified the setup process for a plugin and now getting a error message during trac-admin <env> upgrade command that does not drive me clearly to the especific issue.

What error message you getting?
 
Additionally in trac's log is nothing referent to the error, it's there something else i need to activate?

I would like to know if there is a way to run trac-admin in debugging mode or activate it to be more verbose in order to generate more debugging information, I have reviewed the available options without success

You could use:
[logging]
log_type = stderr
log_level = DEBUG

so that the output is sent to the terminal.

Did you install the plugin and Trac in debug (editable) mode?

Beyond that, you might want to use the python debugger, which can be easier if you're using an IDE like pydev or pycharm. However, I'd first want to take a look at the error message and see if we can narrow in on the issue by using debug print statements.

- Ryan 

Emerson Castañeda

unread,
Jun 5, 2017, 2:12:06 PM6/5/17
to trac...@googlegroups.com
Thanks

it's working perfect now, I did not have ` log_type = stderr` option .

The message was about an index out of range , but now that I can see the full trace I have been able to detect and fix the issue.



--
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-dev+unsubscribe@googlegroups.com.
To post to this group, send email to trac...@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages