Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node.js logs should include timestamps #399

Closed
mattheworiordan opened this issue Apr 21, 2017 · 1 comment
Closed

Node.js logs should include timestamps #399

mattheworiordan opened this issue Apr 21, 2017 · 1 comment
Labels
enhancement New feature or improved functionality.

Comments

@mattheworiordan
Copy link
Member

Got this whilst running some Node.js tests:

Ably: RealtimeChannel.notifyState: name = 1492774305244, current state = attaching, notifying state attached
Ably: RealtimePresence.onAttached(): channel = 1492774305244, hasPresence = false
Ably: RealtimePresence.onAttached: sending 1 queued presence messages
Ably: ConnectionManager.send(): sending event
Ably: Protocol.send(): sending msg; [ProtocolMessage; action=PRESENCE; channel=1492774305244; msgSerial=0; presence=[ [PresenceMessage; action=enter] ]]
Ably: Channel state for channel "1492774305244": attached
Ably: RealtimeChannel.onAttached: activating channel; name = 1492774305244
Ably: WebSocketTransport.onWsData(): data received; length = 246; type = object
Ably: Transport.onProtocolMessage(): received on web_socket: [ProtocolMessage; action=PRESENCE; id=mh2MAoIU2t:0; channel=1492774305244; channelSerial=e91VJNqQAA5uVb28282688:0; connectionId=mh2MAoIU2t; connectionSerial=0; timestamp=1492774304423; presence=[ [PresenceMessage; action=enter; id=mh2MAoIU2t:0:0; timestamp=1492774304423; clientId=testSuite; connectionId=mh2MAoIU2t] ]]
Ably: RealtimePresence.setPresence(): received presence for 1 participants; syncChannelSerial = undefined
Ably: WebSocketTransport.onWsData(): data received; length = 27; type = object
Ably: Transport.onProtocolMessage(): received on web_socket: [ProtocolMessage; action=ACK; count=1; msgSerial=0]
Ably: Protocol.onAck(): serial = 0; count = 1
Ably: MessageQueue.completeMessages(): serial = 0; count = 1

We should add in a timestamp to make this more useful

@mattheworiordan mattheworiordan added the enhancement New feature or improved functionality. label Apr 21, 2017
@SimonWoolf
Copy link
Member

Fixed by 7845bba

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improved functionality.
Development

No branches or pull requests

2 participants