Skip to content

Commit f0657c3

Browse files
committed
[DCV-3760] Add logging for config change detection in watcher
1 parent 060a3ef commit f0657c3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/dbt_core_interface/watcher.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def _monitor_loop(self) -> None:
116116
try:
117117
change_level = self._check_for_changes()
118118
if change_level:
119+
logger.info(f"Reparsing project (change_level={change_level})")
119120
self._project.parse_project(
120121
write_manifest=True, reparse_configuration=change_level > 1
121122
)
@@ -160,6 +161,7 @@ def _check_for_changes(self) -> int:
160161
stamped_mtime = self._mtimes.get(path)
161162
if stamped_mtime is None or current_mtime != stamped_mtime:
162163
self._mtimes[path] = current_mtime
164+
logger.info(f"Config change detected: {path}")
163165
return 2
164166
except OSError as e:
165167
logger.warning(f"Error checking file {path}: {e}")

0 commit comments

Comments
 (0)