Skip to content

Commit

Permalink
Merge pull request #2 from pabrrs/refac/log
Browse files Browse the repository at this point in the history
Correção em typos
  • Loading branch information
pabrrs authored Jun 10, 2020
2 parents da4f661 + a520649 commit e147bc6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/www
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ const apiConfig = require('../src/config/api-config')
const logger = require('../src/client/logger-client')

app.listen(apiConfig.port, () => {
logger.info({ msg: `Listening on port ${apiConfig.port}` })
logger.info({ action: 'www', message: `Listening on port ${apiConfig.port}` })
})
4 changes: 2 additions & 2 deletions src/services/health-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ module.exports = {
*/
async status() {
logger.debug({
action: 'healthService.status',
msg: 'Checking API health'
action: 'health-service.status',
message: 'Checking API health'
})
return Promise.resolve({ status: 'ok' })
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/client/firebase-client.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const apiConfig = require('../../../src/config/api-config')
const firebaseConfig = require('../../../src/config/firebase-config')
const firebaseClient = require('../../../src/client/firebase-client')

describe('[Unit] clients/firebase-client', () => {
describe('[Unit] client/firebase-client', () => {
describe('._createConnection', () => {
let connection
const stubFirestoreSettings = sinon.stub()
Expand Down
2 changes: 1 addition & 1 deletion test/unit/client/logger-client.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const loggerConfig = require('../../../src/config/logger-config')
const logger = require('../../../src/client/logger-client')

describe('[Unit] clients/logger-client', () => {
describe('[Unit] client/logger-client', () => {
describe('.getInstance', () => {
it('should instantiate a Pino instance', () => {
expect(logger.constructor.name).to.be.eql('Pino')
Expand Down

0 comments on commit e147bc6

Please sign in to comment.