Skip to content

log version number in each log line - #1562

Merged
MorrisJobke merged 1 commit into
masterfrom
log-version
Oct 6, 2016
Merged

log version number in each log line#1562
MorrisJobke merged 1 commit into
masterfrom
log-version

Conversation

@MorrisJobke

Copy link
Copy Markdown
Member

Makes it a lot easier to analyze log files, because then you see if the log was fixed with a recent version or was caused by a recent version for example.

cc @nickvergessen @LukasReschke @schiessle @blizzz

@mention-bot

Copy link
Copy Markdown

@MorrisJobke, thanks for your PR! By analyzing the annotation information on this pull request, we identified @LukasReschke, @bartv2 and @MTGap to be potential reviewers

@LukasReschke LukasReschke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good stuff :)

@LukasReschke

Copy link
Copy Markdown
Member

LGTM

@MorrisJobke MorrisJobke added this to the Nextcloud 11.0 milestone Sep 29, 2016
@blizzz

blizzz commented Sep 29, 2016

Copy link
Copy Markdown
Member

Personally, I don't like it, it's an excuse for doing proper bug reports. If version is missing, then other necessary information is probably missing, too, and you'd need to ask for other stuff anyway. ±0

@LukasReschke

Copy link
Copy Markdown
Member

Personally, I don't like it, it's an excuse for doing proper bug reports. If version is missing, then other necessary information is probably missing, too, and you'd need to ask for other stuff anyway.

It's also helpful in case you want to quickly take a look in your log monitoring systems when an error appeared and on what versions :)

… not really super awesome to always have to look up when one updated etc…

@nickvergessen

Copy link
Copy Markdown
Member

I can see the point, but I don't really like to invoke yet another class when writing a log.

@LukasReschke

Copy link
Copy Markdown
Member

I can see the point, but I don't really like to invoke yet another class when writing a log.

IConfig is already used in that function, maybe manually read from the config version?

@MorrisJobke

Copy link
Copy Markdown
Member Author

I can see the point, but I don't really like to invoke yet another class when writing a log.

I also checked it and all it does it reads the current session. And the version is loaded anyways before. I feared also to add another dependency there, but it would really help to make looking at logs easy - especially when doing upgrade testing.

@MorrisJobke

Copy link
Copy Markdown
Member Author

@blizzz @nickvergessen Yes or no? I would love to see this included.

@MorrisJobke

Copy link
Copy Markdown
Member Author

Maybe others also have an opinion on this? @schiessle @rullzer @icewind1991

@nickvergessen

Copy link
Copy Markdown
Member

I'm okay, when we use $config->getValue('version') so no session stuff is called, etc.

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@MorrisJobke

Copy link
Copy Markdown
Member Author

I'm okay, when we use $config->getValue('version') so no session stuff is called, etc.

Done :)

@nickvergessen

Copy link
Copy Markdown
Member

👍

@nickvergessen nickvergessen added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Oct 6, 2016
@MorrisJobke
MorrisJobke merged commit ead4cb9 into master Oct 6, 2016
@MorrisJobke
MorrisJobke deleted the log-version branch October 6, 2016 12:44
@MorrisJobke

Copy link
Copy Markdown
Member Author

stable10: #1646
stable9: #1647

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

Labels

4. to release Ready to be released and/or waiting for tests to finish enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants