You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (LogLevel.values.indexOf(_config.activeLogLevel) <=LogLevel.values.indexOf(log.logLevel!) &&
_config.logLevelsEnabled.contains(_config.activeLogLevel)) {
//check to see if logcat debugging is enabledif (_config.isDebuggable) {
print(Formatter.format(log, _config));
}
await _flogDao.insert(log);
}
and it should be:
if (LogLevel.values.indexOf(_config.activeLogLevel) <=LogLevel.values.indexOf(log.logLevel!) ||
_config.logLevelsEnabled.contains(_config.activeLogLevel)) {
//check to see if logcat debugging is enabledif (_config.isDebuggable) {
print(Formatter.format(log, _config));
}
await _flogDao.insert(log);
}
Because currently used operator is && instead of || lower than info logs are never written to db even tho they are enabled in config.
The text was updated successfully, but these errors were encountered:
Current if clause in flog.dart line 482 is:
and it should be:
Because currently used operator is
&&
instead of||
lower than info logs are never written to db even tho they are enabled in config.The text was updated successfully, but these errors were encountered: