Skip to content
Snippets Groups Projects
Commit 7f962c04 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Lower status deserialization message levels.

Refers to #3
parent 92e10c87
No related branches found
No related tags found
No related merge requests found
...@@ -159,7 +159,7 @@ namespace ATXCommon.Serializables ...@@ -159,7 +159,7 @@ namespace ATXCommon.Serializables
} }
public static ServiceStatus Deserialize(string file, ServiceConfig config) { public static ServiceStatus Deserialize(string file, ServiceConfig config) {
Log.Debug("Trying to deserialize status XML file [{0}].", file); Log.Trace("Trying to deserialize status XML file [{0}].", file);
ServiceStatus status; ServiceStatus status;
var xs = new XmlSerializer(typeof(ServiceStatus)); var xs = new XmlSerializer(typeof(ServiceStatus));
...@@ -167,7 +167,7 @@ namespace ATXCommon.Serializables ...@@ -167,7 +167,7 @@ namespace ATXCommon.Serializables
var reader = File.OpenText(file); var reader = File.OpenText(file);
status = (ServiceStatus) xs.Deserialize(reader); status = (ServiceStatus) xs.Deserialize(reader);
reader.Close(); reader.Close();
Log.Debug("Finished deserializing service status XML file."); Log.Trace("Finished deserializing service status XML file.");
} }
catch (Exception) { catch (Exception) {
// if reading the status XML fails, we return an empty (new) one // if reading the status XML fails, we return an empty (new) one
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment