Clear Flash log by default
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user