Add some logging to rake task