Skip to content

Commit

Permalink
remove comments; revert logger
Browse files Browse the repository at this point in the history
  • Loading branch information
roj42 committed Oct 13, 2022
1 parent 9e7aaf8 commit aa3f305
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
9 changes: 0 additions & 9 deletions BigStorage/BigStorageMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,6 @@ private static void ApplyColorToBuilding(BuildingComplete building)
traverse.Field("filterTint").SetValue(beautifulColor);
CaiLib.Logger.Logger.Log(string.Concat("setting beautifulColor", beautifulColor.ToString()));
}

////Since the Sweet Dreams update, this will be null on old saves. I don't know why, I just work here.
///And on deeper investigation, we don't even need this
//if (!traverse.Field<List<Tag>>("acceptedTags").Value.IsNullOrDestroyed())
//{
// HashSet<Tag> array = new HashSet<Tag>(traverse.Field<List<Tag>>("acceptedTags").Value);
// treeFilterable.OnFilterChanged(array);
//}
//else { CaiLib.Logger.Logger.Log("Error");}
}
}
}
Expand Down
20 changes: 10 additions & 10 deletions BigStorage/CaiLib.Logger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ public static class Logger
public static void LogInit()
{
string message = string.Format("{0} <<-- CaiLib -->> Loaded [ {1} ] with version {2}", Logger.Timestamp(), Logger.GetModName(), Assembly.GetExecutingAssembly().GetName().Version);
//Console.WriteLine(message);
using (StreamWriter writer = File.CreateText("BigStorageLog.txt"))
{
writer.WriteLine(message);
}
Console.WriteLine(message);
//using (StreamWriter writer = File.CreateText("BigStorageLog.txt"))
//{
// writer.WriteLine(message);
//}
}

// Token: 0x06000017 RID: 23 RVA: 0x0000249C File Offset: 0x0000069C
Expand All @@ -30,12 +30,12 @@ public static void Log(string message)
" -->> ",
message
});
//Console.WriteLine(logline);
Console.WriteLine(logline);

using (StreamWriter writer = File.AppendText("BigStorageLog.txt"))
{
writer.WriteLine(logline);
}
//using (StreamWriter writer = File.AppendText("BigStorageLog.txt"))
//{
// writer.WriteLine(logline);
//}
}

// Token: 0x06000018 RID: 24 RVA: 0x000024D4 File Offset: 0x000006D4
Expand Down

0 comments on commit aa3f305

Please sign in to comment.