Clear Flash log by default

This commit is contained in:
Joshua Granick
2015-07-01 11:13:07 -07:00
parent b292b20767
commit 47b9f0d7c5
2 changed files with 12 additions and 2 deletions

View File

@@ -952,7 +952,7 @@ class FlashHelper {
}
public static function tailLog (start:Int = 0):Void {
public static function tailLog (start:Int = 0, clear:Bool = true):Void {
try {
@@ -968,6 +968,16 @@ class FlashHelper {
if (FileSystem.exists (path)) {
if (clear) {
try {
File.saveContent (path, "");
} catch (e:Dynamic) {}
}
while (true) {
var input = null;