Skip to content

Commit

Permalink
Revert "Fix logging"
Browse files Browse the repository at this point in the history
This reverts commit 9e2a9d5.

# Conflicts:
#	main/index.js
#	renderer/player/index.js
  • Loading branch information
bcomnes committed Dec 24, 2023
1 parent 5bfaa4e commit e01b0c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main/track-dict.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function makeTrackDict (paths, cb) {

function handleEos (err) {
if (err) return cb(err)
console.log('')
log.info('')
cb(null, newTrackDict)
}
}
Expand All @@ -32,7 +32,7 @@ function isValidFile (data, enc, cb) {

function concatTrackDict (obj) {
function writeTrackDict (data, enc, cb) {
console.log(`Scanning ${data.filepath}`)
log.info(`Scanning ${data.filepath}`)
parseMetadata(data, handleMeta)

function handleMeta (err, meta) {
Expand Down Expand Up @@ -83,7 +83,7 @@ function parseMetadata (data, cb) {
})
}).catch(err => {
// Ignore errors
console.log(err.message += ` (file: ${filepath})`)
log.info(err.message += ` (file: ${filepath})`)
const { basename } = data
const ext = path.extname(basename)
const title = path.basename(basename, ext)
Expand Down

0 comments on commit e01b0c4

Please sign in to comment.