Skip to content

Commit

Permalink
Restore file read error logging to Error level
Browse files Browse the repository at this point in the history
  • Loading branch information
richardbuckle committed Apr 16, 2018
1 parent 3b57ebb commit d55cbea
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Utilities/Files.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,35 +23,35 @@ public static string Read(string name)
}
catch (ArgumentException ex)
{
Logging.Debug("Failed to read from " + name, ex);
Logging.Error("Failed to read from " + name, ex);
}
catch (PathTooLongException ex)
{
Logging.Debug("Path " + name + " too long", ex);
Logging.Error("Path " + name + " too long", ex);
}
catch (DirectoryNotFoundException ex)
{
Logging.Debug("Directory for " + name + " not found", ex);
Logging.Error("Directory for " + name + " not found", ex);
}
catch (FileNotFoundException ex)
{
Logging.Debug("File " + name + " not found", ex);
Logging.Error("File " + name + " not found", ex);
}
catch (IOException ex)
{
Logging.Debug("IO exception for " + name, ex);
Logging.Error("IO exception for " + name, ex);
}
catch (UnauthorizedAccessException ex)
{
Logging.Debug("Not allowed to read from " + name, ex);
Logging.Error("Not allowed to read from " + name, ex);
}
catch (NotSupportedException ex)
{
Logging.Debug("Not supported reading from " + name, ex);
Logging.Error("Not supported reading from " + name, ex);
}
catch (SecurityException ex)
{
Logging.Debug("Security exception reading from " + name, ex);
Logging.Error("Security exception reading from " + name, ex);
}

}
Expand Down

0 comments on commit d55cbea

Please sign in to comment.