updated logging
This commit is contained in:
parent
43d8402643
commit
97eae1a183
2 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ module.exports = {
|
||||||
// publish the file
|
// publish the file
|
||||||
return lbryApi.publishClaim(publishParams)
|
return lbryApi.publishClaim(publishParams)
|
||||||
.then(tx => {
|
.then(tx => {
|
||||||
logger.info(`Successfully published ${fileName}`, tx);
|
logger.info(`Successfully published ${publishParams.name} ${fileName}`, tx);
|
||||||
publishResults = tx;
|
publishResults = tx;
|
||||||
// get the channel information
|
// get the channel information
|
||||||
if (publishParams.channel_name) {
|
if (publishParams.channel_name) {
|
||||||
|
|
|
@ -16,7 +16,7 @@ function determineFileExtensionFromContentType (contentType) {
|
||||||
case 'video/mp4':
|
case 'video/mp4':
|
||||||
return 'mp4';
|
return 'mp4';
|
||||||
default:
|
default:
|
||||||
logger.info('setting unknown file type as file extension jpg');
|
logger.debug('setting unknown file type as file extension jpg');
|
||||||
return 'jpg';
|
return 'jpg';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -33,7 +33,7 @@ function determineContentTypeFromFileExtension (fileExtension) {
|
||||||
case 'mp4':
|
case 'mp4':
|
||||||
return 'video/mp4';
|
return 'video/mp4';
|
||||||
default:
|
default:
|
||||||
logger.info('setting unknown file type as type image/jpg');
|
logger.debug('setting unknown file type as type image/jpg');
|
||||||
return 'image/jpg';
|
return 'image/jpg';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue