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

Exceptions don't seem to be logged #1238

Closed
pie-flavor opened this issue Jan 12, 2019 · 3 comments
Closed

Exceptions don't seem to be logged #1238

pie-flavor opened this issue Jan 12, 2019 · 3 comments

Comments

@pie-flavor
Copy link

pie-flavor commented Jan 12, 2019

Code:

client.Log += Log;
client.Ready += () => throw new Exception();
public Task Log(LogMessage msg)
{
    Console.WriteLine(msg);
    return Task.CompletedTask;
}

Expected result: logging the error to stdout
Actual result: nothing at all.

@pie-flavor
Copy link
Author

any sort of status?

@karpovichv
Copy link

any sort of status?

I'm wondering the same thing. I was trying to figure out why my bot was ignoring some messages and it seems like there were thrown some exceptions but they were not logged.

@DannyKrendel
Copy link

Same thing happened to me today, client ignores all exceptions. This bug is critical (especially when you rely on exception logs) and should be fixed asap.

@foxbot foxbot closed this as completed in f6e3200 May 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants