|
22 | 22 |
|
23 | 23 | import org.apache.cloudstack.utils.CloudStackVersion; |
24 | 24 | import org.apache.commons.collections.CollectionUtils; |
| 25 | +import org.apache.log4j.Logger; |
25 | 26 | import org.springframework.stereotype.Component; |
26 | 27 |
|
27 | 28 | import com.cloud.hypervisor.Hypervisor; |
|
34 | 35 |
|
35 | 36 | @Component |
36 | 37 | public class GuestOSHypervisorDaoImpl extends GenericDaoBase<GuestOSHypervisorVO, Long> implements GuestOSHypervisorDao { |
| 38 | + private static final Logger s_logger = Logger.getLogger(GuestOSHypervisorDaoImpl.class); |
37 | 39 |
|
38 | 40 | protected final SearchBuilder<GuestOSHypervisorVO> guestOsSearch; |
39 | 41 | protected final SearchBuilder<GuestOSHypervisorVO> mappingSearch; |
@@ -111,6 +113,8 @@ public GuestOSHypervisorVO findByOsIdAndHypervisor(long guestOsId, String hyperv |
111 | 113 | if (parentVersion == null) { |
112 | 114 | return null; |
113 | 115 | } |
| 116 | + s_logger.info(String.format("Mapping for guest OS ID: %d for hypervisor: %s with version: %s can not be found. " + |
| 117 | + "Trying to find one for the parent version: %s", guestOsId, hypervisorType, hypervisorVersion, parentVersion)); |
114 | 118 | return findByOsIdAndHypervisorInternal(guestOsId, hypervisorType, parentVersion); |
115 | 119 | } |
116 | 120 |
|
@@ -161,6 +165,8 @@ public GuestOSHypervisorVO findByOsNameAndHypervisor(String guestOsName, String |
161 | 165 | if (parentVersion == null) { |
162 | 166 | return null; |
163 | 167 | } |
| 168 | + s_logger.info(String.format("Mapping for guest OS: %s for hypervisor: %s with version: %s can not be found. " + |
| 169 | + "Trying to find one for the parent version: %s", guestOsName, hypervisorType, hypervisorVersion, parentVersion)); |
164 | 170 | return findByOsNameAndHypervisorInternal(guestOsName, hypervisorType, parentVersion); |
165 | 171 | } |
166 | 172 |
|
|
0 commit comments