mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2025-01-08 20:08:45 +03:00
Log version info on app startup
This commit is contained in:
parent
72a1dc511f
commit
ba2e979de3
@ -15,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import 'dart:developer' as developer;
|
import 'dart:developer' as developer;
|
||||||
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
@ -27,6 +28,7 @@ import 'app/state.dart';
|
|||||||
import 'core/state.dart';
|
import 'core/state.dart';
|
||||||
import 'desktop/init.dart' as desktop;
|
import 'desktop/init.dart' as desktop;
|
||||||
import 'error_page.dart';
|
import 'error_page.dart';
|
||||||
|
import 'version.dart';
|
||||||
|
|
||||||
final _log = Logger('main');
|
final _log = Logger('main');
|
||||||
|
|
||||||
@ -43,6 +45,12 @@ void main(List<String> argv) async {
|
|||||||
_initializeDebugLogging();
|
_initializeDebugLogging();
|
||||||
throw UnimplementedError('Platform not supported');
|
throw UnimplementedError('Platform not supported');
|
||||||
}
|
}
|
||||||
|
_log.info('Running Yubico Authenticator...', {
|
||||||
|
'app_version': version,
|
||||||
|
'dart': Platform.version,
|
||||||
|
'os': Platform.operatingSystem,
|
||||||
|
'os_version': Platform.operatingSystemVersion,
|
||||||
|
});
|
||||||
runApp(initializedApp);
|
runApp(initializedApp);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
_log.warning('Platform initialization failed: $e');
|
_log.warning('Platform initialization failed: $e');
|
||||||
|
Loading…
Reference in New Issue
Block a user