Skip to content

Commit

Permalink
Reduce verbosity of progress logging (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
gyk4j authored Mar 13, 2024
1 parent 779efd3 commit e63edff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions WreckGui/Controller/GuiController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,20 +199,20 @@ public void PropertyChange(PropertyChangeEvent evt)
else if (R.Strings.PropertyProgress.Equals(evt.PropertyName))
{
int progress = (int)evt.NewValue;
LOG.InfoFormat("Progress: {0}%", progress);
LOG.DebugFormat("Progress: {0}%", progress);
controller.View.GetMain().SetProgress(progress);
}
else if (R.Strings.PropertyVisits.Equals(evt.PropertyName))
{
FileVisit visit = (FileVisit) evt.NewValue;
LOG.InfoFormat("Progress: {0}% - Visit: {1}", visit.Progress, visit.File.Name);
LOG.DebugFormat("Progress: {0}% - Visit: {1}", visit.Progress, visit.File.Name);
controller.View.GetMain().SetProgress(visit.Progress);
controller.View.GetMain().SetAction(visit);
}
else if(R.Strings.PropertyBean.Equals(evt.PropertyName))
{
FileBean update = (FileBean) evt.NewValue;
LOG.InfoFormat("FileBean: {0} {1} {2} {3} {4}",
LOG.DebugFormat("FileBean: {0} {1} {2} {3} {4}",
update.Path.Name,
update.Creation.ToString(),
update.Modified.ToString(),
Expand Down
4 changes: 2 additions & 2 deletions WreckGui/log4net.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@

<!-- Set root logger level to DEBUG and add appenders -->
<root>
<level value="DEBUG" />
<level value="INFO" />
<appender-ref ref="OutputDebugAppender" />
<!-- appender-ref ref="RollingFile" / -->
</root>

<!-- Print only messages of level WARN or above in the package Wreck -->
<logger name="Wreck">
<level value="DEBUG" />
<level value="INFO" />
</logger>
</log4net>

0 comments on commit e63edff

Please sign in to comment.