Skip to content

Commit

Permalink
chore: upgrade logger (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuong Tran committed Aug 10, 2020
1 parent f0b0916 commit dbe70f4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -36,7 +36,7 @@
"graphql-tools": "^4.0.5",
"graphql-yoga": "^1.18.3",
"joi": "^14.3.1",
"juno-js": "^0.1.0",
"juno-js": "^0.1.1",
"lodash": "^4.17.15",
"pg": "^8.2.1",
"pg-hstore": "^2.3.3",
Expand Down
2 changes: 1 addition & 1 deletion src/app.js
Expand Up @@ -19,7 +19,7 @@ const app = () => {
debug: false,
};

server.start(options, ({ port }) => logger().info(`Server is running on http://127.0.0.1:${port}`));
server.start(options, ({ port }) => logger.info(`Server is running on http://127.0.0.1:${port}`));
};

export default app;
4 changes: 2 additions & 2 deletions src/index.js
Expand Up @@ -10,8 +10,8 @@ globalOptions.environment = config.nodeEnv;

const main = async () => {
const pathToMigration = path.join(__dirname, 'migrations');
await migrateDB(db.sequelize, pathToMigration).catch(logger().error);
await migrateDB(db.sequelize, pathToMigration).catch(logger.error);
app();
};

main().catch(logger().error);
main().catch(logger.error);
2 changes: 1 addition & 1 deletion src/models/index.js
Expand Up @@ -21,7 +21,7 @@ const sequelize = new Sequelize({
sequelize
.authenticate()
.catch(e => {
logger().error(e);
logger.error('sequelize authentication error', e);
process.exit(1);
})

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -3452,10 +3452,10 @@ json5@^2.1.2:
dependencies:
minimist "^1.2.5"

juno-js@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/juno-js/-/juno-js-0.1.0.tgz#5c4a00b6a07890c9ea086e584986883046c210a9"
integrity sha512-5SPE+vht1vOnDBLABDe8ksmb/IP0UE2y6B/W/Pr4byop28mmZ2pBHODnJdoAr3LuapkJ4Avm0MEwqscbPWQNXA==
juno-js@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/juno-js/-/juno-js-0.1.1.tgz#c5baeacd4de9d2a099575840e1cfc46e1623b68f"
integrity sha512-Pz5SdwpSEge7CT/y1smRikZfWRqidk9oseNiUjBVd9gJhnfbKu2skPPszVL2gOjcUfnu2ii4oqJ/aElKqbhHxg==
dependencies:
lodash "^4.17.19"
winston "^3.3.3"
Expand Down

0 comments on commit dbe70f4

Please sign in to comment.