reading wpi logs fixed

This commit is contained in:
ruslan 2012-08-14 16:29:26 +03:00
parent ce1842eef9
commit b419cfc72d
2 changed files with 38 additions and 19 deletions

View file

@ -740,12 +740,13 @@ namespace WebsitePanel.Server
Log.WriteError("WpiGetLogFileDirectory", ex);
throw;
//throw;
return string.Empty;
}
}
[WebMethod]
public SettingPair[] WpiGetLogsInDirectory(string Path)
public SettingPair[] WpiGetLogsInDirectory(string path)
{
try
{
@ -753,7 +754,7 @@ namespace WebsitePanel.Server
ArrayList result = new ArrayList();
string[] filePaths = Directory.GetFiles(Path);
string[] filePaths = Directory.GetFiles(path);
foreach (string filePath in filePaths)
{
using (StreamReader streamReader = new StreamReader(filePath))
@ -773,7 +774,8 @@ namespace WebsitePanel.Server
Log.WriteError("WpiGetLogFileDirectory", ex);
throw;
//throw;
return null;
}
}