How to use the @graphback/core.logger.warn function in @graphback/core

To help you get started, we’ve selected a few @graphback/core 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 aerogear / graphback / packages / graphql-migrations / src / production / database / migrations / DataResourcesManager.ts View on Github external
private handleError(err: any): void {
    if (err.code === 'ECONNREFUSED') {
      logger.warn('Database not running. Run docker-compose up -d or docker-compose start to start the database.')
    } else {
      logger.warn(err.message)
    }
    process.exit(0)
  }
}
github aerogear / graphback / packages / graphql-migrations / src / production / database / migrations / DataResourcesManager.ts View on Github external
private handleError(err: any): void {
    if (err.code === 'ECONNREFUSED') {
      logger.warn('Database not running. Run docker-compose up -d or docker-compose start to start the database.')
    } else {
      logger.warn(err.message)
    }
    process.exit(0)
  }
}