Don't you want to use the logger to log these kinds of things? This is debug output isn't it? It doesn't really seem like this is action belongs in this method.