CA-198487: Log at Info level not Debug level

This commit is contained in:
Stephen Turner 2016-02-12 11:29:19 +00:00
parent a1e2032e65
commit e940ed8bb0
2 changed files with 3 additions and 33 deletions

View File

@ -226,36 +226,12 @@
</appender>
<root>
<level value="DEBUG"/>
<level value="INFO"/>
<appender-ref ref="RollingLogFileAppender"/>
<!-- appender-ref ref="TraceAppender" -->
<!-- appender-ref ref="NetworkTraceAppender" -->
</root>
<logger name="DotNetVnc">
<level value="INFO"/>
</logger>
<logger name="XenAdmin.ConsoleView.XSVNCScreen">
<level value="INFO"/>
</logger>
<logger name="XenAdmin.ConsoleView.RdpClient">
<level value="INFO"/>
</logger>
<logger name="XenAdmin.Network.TaskPoller">
<level value="INFO"/>
</logger>
<logger name="XenAdmin.AutomatedTests">
<level value="INFO"/>
</logger>
<logger name="XenAdmin.Actions.ActivationRequestAction">
<level value="INFO"/>
</logger>
<!-- Audit Trailing: The Audit logger will log all operations starting and finishing at INFO,
and all failed operations at WARN. -->
<appender name="AuditAppender" type="log4net.Appender.RollingFileAppender">
@ -273,11 +249,5 @@
<level value="INFO"/>
<appender-ref ref="AuditAppender"/>
</logger>
<!-- XenAPI.Session will log all start-up-time XML-RPC transactions at DEBUG,
all others at INFO. -->
<logger name="XenAPI.Session">
<level value="INFO"/>
</logger>
</log4net>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration>

View File

@ -183,7 +183,7 @@ namespace XenAdmin.Network
if (m_startTime.Ticks == 0)//log it the first time it is detected
{
m_startTime = now;
log.Debug(debugMsg);
log.Info(debugMsg);
}
//then log every 5mins
@ -191,7 +191,7 @@ namespace XenAdmin.Network
if (currDebug > m_lastDebug)
{
m_lastDebug = currDebug;
log.DebugFormat(debugMsg);
log.InfoFormat(debugMsg);
}
}