[ https://issues.apache.org/jira/browse/CLOUDSTACK-10316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhenhao Li updated CLOUDSTACK-10316: ------------------------------------ Issue Type: Improvement (was: Bug) > Inconsistent logging level with same log messages > ------------------------------------------------- > > Key: CLOUDSTACK-10316 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10316 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the > default.) > Reporter: Zhenhao Li > Priority: Minor > Labels: easyfix > > We found that some logging statements have same log message, but they have > different logging level. Maybe a possible reason is that they are code clone, > developers changed one of them(changed it's level) but forgot to change the > other one. Here's the details of those logging statements we found: > 1.*"Unexpected exception caught while removing network elements from OVF:"* > _com.cloud.hypervisor.vmware.mo.HypervisorHostHelper.*removeOVFNetwork()*,_ > _com.cloud.agent.api.api.storage.OVFHelper.*rewriteOVFFile()*,_ > They catch the same exception type, but the previous one is warn level, and > the latter one is info level. Should they have consistent logging level? > > > 2.*"Nuage VSP Device with ID " + nuageVspDevice.getId() + " is configured > with an unknown CMS ID!"* > _com.cloud.network.manager.NuageVspManagerImpl.*executeSyncCmsId()*,_ > _com.cloud.network.manager.NuageVspManagerImpl.*auditHost()*_ > They have the same logging messages, but the previous one has fatal level, > the latter one has error level. > -- This message was sent by Atlassian JIRA (v7.6.3#76005)