mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-05-02 06:36:19 -04:00
checkpoint before android work
This commit is contained in:
parent
2a9522cc24
commit
82f680b35f
14 changed files with 61 additions and 88 deletions
|
@ -7,7 +7,7 @@ Future<VeilidConfig> getDefaultVeilidConfig() async {
|
|||
return VeilidConfig(
|
||||
programName: "Veilid Plugin Test",
|
||||
namespace: "",
|
||||
apiLogLevel: VeilidConfigLogLevel.trace,
|
||||
apiLogLevel: VeilidConfigLogLevel.info,
|
||||
capabilities: VeilidConfigCapabilities(
|
||||
protocolUDP: !kIsWeb,
|
||||
protocolConnectTCP: !kIsWeb,
|
||||
|
|
|
@ -42,9 +42,9 @@ void setRootLogLevel(LogLevel? level) {
|
|||
|
||||
void initLoggy() {
|
||||
Loggy.initLoggy(
|
||||
logPrinter: ConsolePrinter(
|
||||
logPrinter: StreamPrinter(ConsolePrinter(
|
||||
const PrettyDeveloperPrinter(),
|
||||
),
|
||||
)),
|
||||
logOptions: getLogOptions(null),
|
||||
);
|
||||
}
|
||||
|
@ -90,14 +90,16 @@ class _MyAppState extends State<MyApp> with UiLoggy {
|
|||
// We also handle the message potentially returning null.
|
||||
try {
|
||||
veilidVersion = Veilid.instance.veilidVersionString();
|
||||
} on PlatformException {
|
||||
} on Exception {
|
||||
veilidVersion = 'Failed to get veilid version.';
|
||||
}
|
||||
loggy.error("Error test");
|
||||
loggy.warning("Warning test");
|
||||
loggy.info("Info test");
|
||||
loggy.debug("Debug test");
|
||||
loggy.trace("Trace test");
|
||||
|
||||
// In case of hot restart shut down first
|
||||
try {
|
||||
await Veilid.instance.shutdownVeilidCore();
|
||||
} on Exception {
|
||||
//
|
||||
}
|
||||
|
||||
// If the widget was removed from the tree while the asynchronous platform
|
||||
// message was in flight, we want to discard the reply rather than calling
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue