Skip to content

Better debugging for DB Cache path #1998

merged 2 commits into from Nov 14, 2012

3 participants


Because there is no debug level logging for the cache path, it may be difficult to figure out problems associated with setting up DB caching. Also, the check for is dir and is really writable being in the same if statement doesn't really allow for specific debug messages.


You can bind together:

log_message('debug', 'Cache Path Error: It is not a folder or can not writable. '.$path);

@appleboy, some level of debug logging is better than nothing, but I decided to separate the if statement and have two different debug level log messages because of my experience when I first tested caching. I had never used it before, and when trying to apply the correct path in my config, I had no feedback, and was quite puzzled with the exact reason why debugging wasn't working. Maybe there is a better solution?

narfbg commented Nov 14, 2012

Since there are many types of cache, we should prefix these log messages with 'DB' to make it more obvious. Also, while at it - it would probably be better if only the first word in the log message started with a capital letter.

@narfbg narfbg merged commit 20209d6 into bcit-ci:develop Nov 14, 2012

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.