Matthias Nott
2026-03-25 d6cf9469aa0462d1b8313cc85907176eee1214a2
lib/screens/chat_screen.dart
....@@ -1,6 +1,7 @@
11 import 'dart:convert';
22 import 'dart:io';
33
4
+import 'package:flutter/foundation.dart';
45 import 'package:path_provider/path_provider.dart';
56
67 import 'package:flutter/material.dart';
....@@ -36,6 +37,8 @@
3637 }
3738
3839 Future<void> _chatLog(String msg) async {
40
+ debugPrint('[Chat] $msg');
41
+ if (!kDebugMode) return;
3942 try {
4043 final dir = await getApplicationDocumentsDirectory();
4144 final file = File('${dir.path}/mqtt_debug.log');