Logging
This commit is contained in:
1 parent
8456e3ee6f
commit
a5c572770b
3 files changed
+8
-2
No files matched your search
@@ -45,6 +45,12 @@ class _AcceptedJobsPageState extends State<AcceptedJobsPage> {
|
||||
void initState() {
|
||||
Future.delayed(const Duration(seconds: 0), () async {
|
||||
_jobs = await MyApp.isarInstance.jobs.filter().stateEqualTo(Constants.stateAccepted).findAll();
|
||||
_jobs.sort((job1, job2) {
|
||||
var date1 = DateTime.parse(job1.ordertime).millisecondsSinceEpoch;
|
||||
var date2 = DateTime.parse(job2.ordertime).millisecondsSinceEpoch;
|
||||
|
||||
return date2 - date1;
|
||||
});
|
||||
|
||||
_initCompleted = true;
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ class MqttCore {
|
||||
|
||||
_mqttClient.publishMessage(topic, MqttQos.exactlyOnce, buffer);
|
||||
|
||||
//Util.logInfo("message\n$text\nsend to $topic");
|
||||
Util.logInfo("message\n$text\nsend to $topic");
|
||||
}
|
||||
|
||||
publishPayloadMessage(String topic, Map<String, dynamic> payload) {
|
||||
|
||||
Reference in new issue
Block a user