add logger to debug