mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +08:00
Remove verbose logging
This commit is contained in:
@ -7,7 +7,6 @@ import 'package:path/path.dart';
|
|||||||
import 'package:synchronized/synchronized.dart';
|
import 'package:synchronized/synchronized.dart';
|
||||||
|
|
||||||
import 'package:gitjournal/settings.dart';
|
import 'package:gitjournal/settings.dart';
|
||||||
import 'package:gitjournal/utils/logger.dart';
|
|
||||||
import 'note.dart';
|
import 'note.dart';
|
||||||
import 'notes_folder.dart';
|
import 'notes_folder.dart';
|
||||||
import 'notes_folder_notifier.dart';
|
import 'notes_folder_notifier.dart';
|
||||||
@ -251,10 +250,10 @@ class NotesFolderFS with NotesFolderNotifier implements NotesFolder {
|
|||||||
);
|
);
|
||||||
_ignoredFiles.add(ignoredFile);
|
_ignoredFiles.add(ignoredFile);
|
||||||
|
|
||||||
Log.v("Ignoring file", props: {
|
// Log.v("Ignoring file", props: {
|
||||||
"path": ignoredFile.filePath,
|
// "path": ignoredFile.filePath,
|
||||||
"reason": ignoredFile.reason.toString(),
|
// "reason": ignoredFile.reason.toString(),
|
||||||
});
|
// });
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!NoteFileFormatInfo.isAllowedFileName(note.filePath)) {
|
if (!NoteFileFormatInfo.isAllowedFileName(note.filePath)) {
|
||||||
@ -289,7 +288,7 @@ class NotesFolderFS with NotesFolderNotifier implements NotesFolder {
|
|||||||
_entityMap.remove(path);
|
_entityMap.remove(path);
|
||||||
|
|
||||||
if (e is Note) {
|
if (e is Note) {
|
||||||
Log.v("File $path was no longer found");
|
// Log.v("File $path was no longer found");
|
||||||
_removeNoteListeners(e);
|
_removeNoteListeners(e);
|
||||||
|
|
||||||
var i = _notes.indexWhere((n) => n.filePath == path);
|
var i = _notes.indexWhere((n) => n.filePath == path);
|
||||||
@ -298,7 +297,7 @@ class NotesFolderFS with NotesFolderNotifier implements NotesFolder {
|
|||||||
_notes.removeAt(i);
|
_notes.removeAt(i);
|
||||||
notifyNoteRemoved(i, note);
|
notifyNoteRemoved(i, note);
|
||||||
} else {
|
} else {
|
||||||
Log.v("Folder $path was no longer found");
|
// Log.v("Folder $path was no longer found");
|
||||||
_removeFolderListeners(e);
|
_removeFolderListeners(e);
|
||||||
|
|
||||||
var i = _folders.indexWhere((f) => f.folderPath == path);
|
var i = _folders.indexWhere((f) => f.folderPath == path);
|
||||||
|
Reference in New Issue
Block a user