From mboxrd@z Thu Jan 1 00:00:00 1970 From: john at keeping.me.uk (John Keeping) Date: Mon, 24 Dec 2018 18:02:52 +0000 Subject: How to check error during syntax highlighting In-Reply-To: References: Message-ID: <20181224180252.GA2084@john.keeping.me.uk> On Mon, Dec 24, 2018 at 06:37:12PM +0900, Katsuya Horiuchi wrote: > I have been playing with filters, specifically syntax-highlighting.py, > in order to render markdown in tree. > However, I would see empty output when something goes wrong. > > Is it possible to check error during syntax highlighting (i.e. take log)? The filter's stderr stream may appear in the web server's log file. I use a small Python program for experimenting with CGit, which will forward stderr from the filter: https://github.com/johnkeeping/git-instacgit You can also simply run CGit in a terminal with a couple of environment variables set, although this is not the most straightforward mechanism to set up. See cgit_url() in tests/setup.sh for an example of this. Regards, John