Repository: syncthing/syncthing (language: go)

Issue:
Clarify log message for ignored folders
### What happened?

`[XXXXX] 2024/12/17 23:52:30 INFO: Ignoring folder "some folder name" (some-folder-id) from device SOME-VERY-LONG-DEVICE-ID since we are configured to`

I try to figure out why a folder does not show on my desktop when offering a folder from my mobile and the log message just cuts out when it gets to the interesting part.

### Syncthing version

v1.28.1

### Platform & operating system

Windows 11 (64-bit Intel/AMD)

### Browser version

Firefox 133.0.3

### Relevant log output

```shell
[XXXXX] 2024/12/17 23:52:30 INFO: Ignoring folder "some folder name" (some-folder-id) from device SOME-VERY-LONG-DEVICE-ID since we are configured to
```



Discussion / hints:
[Quick code search](https://github.com/search?q=repo%3Asyncthing%2Fsyncthing%20%22since%20we%20are%20configured%20to%22&type=code)
 links it to 
[lib/model/model.go 1396](https://github.com/syncthing/syncthing/blob/ce3248cea79b2bb205976802f6345cbe91d5254b/lib/model/model.go#L1396)
with 1395 checking for the folder being ignored.
So the "correct" message would be

`[XXXXX] 2024/12/17 23:52:30 INFO: Ignoring folder "some folder name" (some-folder-id) from device SOME-VERY-LONG-DEVICE-ID since it is in the list of ignored folders.`

Maybe a hint to how to "un-ignore" the folder would help as well.


I suppose this is just a question of writing style / grammatics.  It's meant to say:

`[XXXXX] 2024/12/17 23:52:30 INFO: Ignoring folder "some folder name" (some-folder-id) from device SOME-VERY-LONG-DEVICE-ID since we are configured to` [...ignore it]

Certainly the software speaking of itself in plural form is not the best idea, but the sentence makes sense and is not cut off.  Your proposal is fine, except I'd like to keep the word "configured" or "configuration" in there somehow.  Can't think of a better alternative though.

Fix patch:
diff --git a/lib/model/model.go b/lib/model/model.go
index a77bda7435a..deef90c3a94 100644
--- a/lib/model/model.go
+++ b/lib/model/model.go
@@ -1393,7 +1393,7 @@ func (m *model) ccHandleFolders(folders []protocol.Folder, deviceCfg config.Devi
 		if !ok {
 			indexHandlers.Remove(folder.ID)
 			if deviceCfg.IgnoredFolder(folder.ID) {
-				l.Infof("Ignoring folder %s from device %s since we are configured to", folder.Description(), deviceID)
+				l.Infof("Ignoring folder %s from device %s since it is in the list of ignored folders", folder.Description(), deviceID)
 				continue
 			}
 			delete(expiredPending, folder.ID)


Test patch: