+ More debug messages

This commit is contained in:
Phil Zhitnikov 2019-03-18 07:37:52 +03:00
parent 0fe9f486e5
commit ca59a2d6ca
3 changed files with 5 additions and 5 deletions

View File

@ -71,7 +71,7 @@ class Importer {
// Create journal if needed
const exists = await this.client.journalExists(journalSlug);
if (!exists) {
// console.error(`Journal with slug ${journalSlug} doesnt exist`);
console.info(`Creating journal ${journalSlug}`);
const journalTitle_rus = $xml("journalInfo[lang=RUS]")
.find("title")

View File

@ -108,7 +108,7 @@ class Client {
if (!jsonData) Promise.reject();
console.log("Parsing journals..");
// console.log("Parsing journals..");
var journals = [];
const $ = cheerio.load(jsonData.content);

View File

@ -370,7 +370,7 @@ class Submission {
})
.then(jsonData => {
// TODO Check JSON has certain info
console.info("addAuthor result:", jsonData);
// console.info("addAuthor result:", jsonData);
if (!jsonData) Promise.reject();
})
@ -431,7 +431,7 @@ class Submission {
.then(data => {
data = { ...data[0], ...data[1] };
console.log("Galley data:", data);
// console.log("Galley data:", data);
this.galleyUpload(
this.info.materialFilePath,
data.genreId,