Code review

This commit is contained in:
JustArchi
2016-06-13 18:08:19 +02:00
parent 60a02a4c6a
commit 7e084bf50b
3 changed files with 42 additions and 36 deletions

View File

@@ -51,6 +51,11 @@ namespace ArchiSteamFarm {
}
public void WriteLine(string category, string msg) {
if (string.IsNullOrEmpty(category) && string.IsNullOrEmpty(msg)) {
Logging.LogNullError(nameof(category) + " && " + nameof(msg));
return;
}
lock (FilePath) {
try {
File.AppendAllText(FilePath, category + " | " + msg + Environment.NewLine);