Flogs icon indicating copy to clipboard operation
Flogs copied to clipboard

Error when logging obfuscated Flutter app

Open matpag opened this issue 4 years ago • 2 comments

If I build an app with --obfuscate and --split-debug-info and try to log a crash automatically, an error is thrown at this line: https://github.com/zubairehman/Flogs/blob/86bb3e9509ed910e5d84801decabc77eee8dccd5/lib/model/flog/flog.dart#L404

Probably because when the Stacktrace is obfuscated it is different from the normal one.

matpag avatar Jul 15 '20 10:07 matpag

Thanks for you feedback, will push the fix for this soon

zubairehman avatar Jul 19 '20 04:07 zubairehman

Likewise, this pair of lines autofetching className/methodName throw exceptions when invoked from a non-class function.

ex.)

nativeCodeCallback() {
  Flog.info(text: 'Non-Class function')

}

class someClass {
...
}

zmoshansky avatar Aug 01 '21 19:08 zmoshansky