Skip to content

Commit

Permalink
Add more logs on integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigok committed Jan 5, 2016
1 parent d7f97b2 commit a295da4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/rocketchat-integrations/server/api/api.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Api.addRoute ':integrationId/:userId/:token', authRequired: true,
if @bodyParams?.payload?
@bodyParams = JSON.parse @bodyParams.payload

console.log 'Post integration'
console.log '@urlParams', @urlParams
console.log '@bodyParams', @bodyParams

integration = RocketChat.models.Integrations.findOne(@urlParams.integrationId)
user = RocketChat.models.Users.findOne(@userId)

Expand Down

4 comments on commit a295da4

@sampaiodiego
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rodrigok can you improve this logs instead of adding that ones?

@rodrigok
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sampaiodiego no, that log only will occurs on requests without content type and when there is content.

We need to think in a better solution.

@sampaiodiego
Copy link
Member

@sampaiodiego sampaiodiego commented on a295da4 Jan 6, 2016 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rodrigok
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohh sorry, I have read use instead improve 😄

Please sign in to comment.