新增 logger 打印方法
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'dart:convert';
|
||||
import 'package:ai_chat_core/ai_chat_core.dart';
|
||||
import 'package:t_basic_intl/intl.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
|
||||
@@ -13,7 +14,7 @@ class LocationService {
|
||||
return json.decode(response.body)['address'];
|
||||
}
|
||||
} catch (e) {
|
||||
print('Error during text classification: $e');
|
||||
Logger.e('Error during text classification: $e');
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user