use logging for debug message