Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Scribe log messages should have millisecond level timestamp#36

Open
rajubairishetti wants to merge 3 commits intoInMobi:master from
rajubairishetti:Scribe-23
Open

Scribe log messages should have millisecond level timestamp #36
rajubairishetti wants to merge 3 commits intoInMobi:master from
rajubairishetti:Scribe-23

Conversation

@rajubairishetti
Copy link

@rajubairishetti rajubairishetti commented Aug 13, 2014

Sample log : [Wed Aug 13 15:59:14 2014 486] "throttle denying request for queue size <31681> with a batch of" " <1> messages for [benchmark_collector] category. It would exceed max queue size <30000>"

Copy link

@satish-mittal satish-mittal Aug 13, 2014

Choose a reason for hiding this comment

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

This introduces one extra call. Try the following:

  • first call gettimeofday()
  • take tv.sec and pass it to ctime_r()
  • together print sec and millisec parts

Copy link

The time format printed now is quite confusing (the millisecond is appearing separately after year). Can we explore some other format that allows seconds and milliseconds to appear together?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /