lib: add logging for window issues