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

fix Issue 15517: std.experimental.logger: using 'sharedLog' to change to file logging for default logger does not work #5371

Merged
merged 1 commit into from May 29, 2017

Conversation

burner
Copy link
Member

@burner burner commented May 7, 2017

was already fixed but had no fixture

@dlang-bot
Copy link
Contributor

Fix Bugzilla Description
15517 std.experimental.logger: using 'sharedLog' to change to file logging for default logger does not work

@@ -3102,3 +3102,39 @@ private void trustedStore(T)(ref shared T dst, ref T src) @trusted
tl.logf("%s", sts);
assert(tl.msg == SystemToStringMsg);
}

// Issue 15517
unittest
Copy link
Member

Choose a reason for hiding this comment

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

Please mark this as either system or safe.

Copy link
Member

Choose a reason for hiding this comment

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

See also CircleCi or style:

Running DScanner
../dscanner/dsc --config .dscanner.ini --styleCheck $(find etc std -type f -name '*.d' | grep -vE 'std/traits.d|std/typecons.d') -I.
std/experimental/logger/core.d(3107:1)[warn]: A unittest should be annotated with at least @safe or @system
make: *** [style] Error 1

@CyberShadow
Copy link
Member

Please improve the commit message.


foreach (t; ts)
{
sharedLog.log(t);
Copy link
Member

Choose a reason for hiding this comment

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

Wait, isn't this exactly what the bug report was talking about? This works, but just doing

log(t);

doesn't

Copy link
Member Author

Choose a reason for hiding this comment

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

my bad, and fixed

Copy link
Member

Choose a reason for hiding this comment

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

@burner This has now reverted

@wilzbach wilzbach changed the title fix Issue 15517 fix Issue 15517: std.experimental.logger: using 'sharedLog' to change to file logging for default logger does not work May 25, 2017
@JackStouffer
Copy link
Member

@burner Please rebase

@burner
Copy link
Member Author

burner commented May 26, 2017

@JackStouffer rebased


foreach (t; ts)
{
sharedLog.log(t);
Copy link
Member

Choose a reason for hiding this comment

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

@burner This has now reverted

@burner
Copy link
Member Author

burner commented May 26, 2017

fixed

was already fixed but had no fixture
@burner
Copy link
Member Author

burner commented May 29, 2017

@JackStouffer win32 works finally, I didn't allow me to open a file twice.

@dlang-bot dlang-bot merged commit 07e0293 into dlang:master May 29, 2017
@burner
Copy link
Member Author

burner commented May 29, 2017

thanks

@burner burner deleted the issue15517 branch May 29, 2017 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants