fs: Fix wrong watcher trace log on Linux (#42544)

Finn Evers created

Follow-up to #40200

Release Notes:

- N/A

Change summary

crates/fs/src/fs_watcher.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/fs/src/fs_watcher.rs 🔗

@@ -72,8 +72,8 @@ impl Watcher for FsWatcher {
         }
         #[cfg(target_os = "linux")]
         {
-            log::trace!("path to watch is already watched: {path:?}");
             if self.registrations.lock().contains_key(path) {
+                log::trace!("path to watch is already watched: {path:?}");
                 return Ok(());
             }
         }