Skip to content

Commit 8c65158

Browse files
Don't log colour codes to logfile on disc
1 parent 3906c8f commit 8c65158

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

fCraft/System/Logger.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ public static void Log( LogType type, [NotNull] string message, [NotNull] params
115115
}
116116
}
117117
if( !Enabled ) return;
118+
119+
message = Color.StripColors( message, true );
118120
string line = DateTime.Now.ToString( TimeFormat ) + " > " + GetPrefix( type ) + message; // localized
119121

120122
lock( LogLock ) {

0 commit comments

Comments
 (0)