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 {
|
try {
|
||||||
|
|
||||||
@@ -968,6 +968,16 @@ class FlashHelper {
|
|||||||
|
|
||||||
if (FileSystem.exists (path)) {
|
if (FileSystem.exists (path)) {
|
||||||
|
|
||||||
|
if (clear) {
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
|
File.saveContent (path, "");
|
||||||
|
|
||||||
|
} catch (e:Dynamic) {}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
||||||
var input = null;
|
var input = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user