How to use the corvid-local-logger.debug function in corvid-local-logger

To help you get started, we’ve selected a few corvid-local-logger examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wix-incubator / corvid / packages / corvid-local-site / src / watcher.js View on Github external
watcher.on("change", async (relativePath, stats) => {
        const posixRelativePath = toPosixPath(relativePath);
        if (!isIgnoredAction("write", posixRelativePath, stats.mtimeMs)) {
          logger.debug(
            getMessage("Watcher_Change_Reporting_Log", {
              path: posixRelativePath
            })
          );
          callback(
            posixRelativePath,
            await fs.readFile(fullPath(posixRelativePath), "utf8")
          );
        } else {
          logger.debug(
            getMessage("Watcher_Change_Ignoring_Log", {
              path: posixRelativePath
            })
          );
          removeFromIgnoredActions("write", posixRelativePath);
        }
      });
    },