Skip to content

Commit

Permalink
Logs: Switch some verbosity levels
Browse files Browse the repository at this point in the history
  • Loading branch information
tgxn committed Jul 13, 2021
1 parent f8544e2 commit 45a5325
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class OrganizerLayer {

if (this.configData.strictType) {
if (movieOrSeries !== this.configData.strictType) {
logger.info("wrong media type, ignoring", filePath, movieOrSeries);
logger.verbose("wrong media type, ignoring", filePath, movieOrSeries);
return false;
}
}
Expand Down Expand Up @@ -184,14 +184,16 @@ class OrganizerLayer {
files.map(async (createLink) => {
if (createLink) {
const foundLink = this.memory.findLink(createLink);
logger.info("createLink", foundLink);
logger.verbose("createLink", foundLink);

if (foundLink) {
await this.createSymlink(
foundLink.sourcePath,
foundLink.linkPath,
foundLink.metaData
);
} else {
logger.error("Unandled exception, link not found!");
throw new Error("Unandled exception, link not found!");
}
}
Expand Down

0 comments on commit 45a5325

Please sign in to comment.