reading wpi logs fixed
This commit is contained in:
parent
ce1842eef9
commit
b419cfc72d
2 changed files with 38 additions and 19 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue