Skip to content

Commit

Permalink
Add some additional debug logging for assets.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseppstein committed Mar 21, 2019
1 parent 5a048a9 commit 204a6fc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/eyeglass/src/assets/Assets.ts
Expand Up @@ -236,9 +236,19 @@ export default class Assets implements Resolves, Installs {
fs.mkdirpSync(path.dirname(dest));

ensureSymlink(file, dest);
debug.assets && debug.assets(
"symlinked %s to %s",
file,
dest
);
} else {
// we explicitly use copySync rather than copy to avoid starving system resources
fs.copySync(file, dest);
debug.assets && debug.assets(
"copied %s to %s",
file,
dest
);
}
cb(null, dest);
} catch (error) {
Expand Down

0 comments on commit 204a6fc

Please sign in to comment.