Developer forum

Forum » Integration » Scheduled tasks showing incorrect logs

Scheduled tasks showing incorrect logs

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

We noticed that sometimes when you right-click a scheduled task in the list in the backend and choose Log, you get the logs for another task. For example, we have these two tasks:

Import users
Import users - UK

When I open the log for the first task, I get a mix of logs for both tasks. The log for the second task shows only its own logs.

I tracked it down to this code in historyList.aspx.vb

Dim searchPattern As String = String.Format("{0}*.log", SystemTools.ScheduledTasks.Task.MakeSafeFileName(jobName).Replace(";", "--"))

This code builds up a search pattern after the task name and then uses the * for a wild card search. This causes Import users - UK to match also when viewing the logs for Import users.

Is this a bug or is there a valid reason for the wild card? We can solve this by having unique task names, but it would be nicer not to have to think about this.

Thanks,

Imar


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Imar,
thanks for finding, this is a bug and will be fixed in TFS# 31932.
Best reagards, Dmitrij

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Imar

The problem TFS#31932 "Show correct Scheduled tasks logs" has now been fixed in 9.3+ versions

You are able to find this build in the download section:

http://doc.dynamicweb.com/releases-and-downloads/releases

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum