How to use the strapi-utils.logger.warn function in strapi-utils

To help you get started, we’ve selected a few strapi-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github strapi / strapi / packages / strapi / bin / strapi-migrate-make.js View on Github external
success: function returnSuccess() {
      logger.info('Migration file successfully generated at `' + path.resolve(scope.rootPath, 'data', 'migrations', scope.connection) + '`.');
      logger.info('Seed file created at `' + path.resolve(scope.rootPath, 'data', 'seeds', scope.connection) + '`.');
      logger.warn('This migration has been automatically generated.');
      logger.warn('We strongly advise you to manually verify those information.');
      process.exit(0);
    }
  });
github strapi / strapi / packages / strapi / bin / strapi-config.js View on Github external
logger.error('Please check read/write permissions before execute `$ strapi config`');
            logger.error('You can manually create the file at `' + HOME + '`');
          } else {
            logger.info('Global configuration file successfully created at `' + HOME + '`');
            logger.info('Please read http://strapi.io/documentation/customization to learn more');
          }
          process.exit(1);
        });
      } else if (err.code === 'EACCES') {
        logger.error('Impossible to access the `.strapirc` file at `' + HOME + '`');
        logger.error('Please check read/write permissions before execute `$ strapi config`');
        logger.error('You can manually create the file at `' + HOME + '`');
        process.exit(1);
      }
    } else {
      logger.warn('Looks like the configuration file already exists at `' + HOME + '`');
      process.exit(0);
    }
  });
};
github strapi / strapi / packages / strapi / bin / strapi-migrate-make.js View on Github external
success: function returnSuccess() {
      logger.info('Migration file successfully generated at `' + path.resolve(scope.rootPath, 'data', 'migrations', scope.connection) + '`.');
      logger.info('Seed file created at `' + path.resolve(scope.rootPath, 'data', 'seeds', scope.connection) + '`.');
      logger.warn('This migration has been automatically generated.');
      logger.warn('We strongly advise you to manually verify those information.');
      process.exit(0);
    }
  });
github strapi / strapi / packages / strapi-hook-redis / lib / utils / connectivity.js View on Github external
redis.connect((err) => {
    redis.disconnect();

    if (err) {
      logger.warn('Database connection has failed! Make sure your database is running.');
      return error();
    }

    logger.info('The app has been connected to the database successfully!');

    execSync(`rm -r "${scope.tmpPath}"`);

    logger.info('Copying the dashboard...');

    success();
  });
};