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

Add Debug build flag. #3

Closed
wants to merge 6 commits into from
Closed

Conversation

mofirouz
Copy link
Member

@mofirouz mofirouz commented Feb 2, 2017

Changes in this PR:

  • Add Debug build flag to enable debug logging and console output in development builds. This will disable processing of messages with Zap.Level.Debug. It will also enable mirroring log out to the console in development builds.

  • Various query tweaks for Friends and Storage.

  • Add additional log messages and enhancing a couple of existing ones.

  • Fix issue where random handle generator wasn't seeded properly.

  • Logout messages now close the connection as well and won't reply.

  • Fix sending Close frame message in the Websocket in order to gracefully close connection.

main.go Outdated
@@ -44,12 +43,18 @@ const (
var (
version string
commitID string
debugBuild bool = true
Copy link
Member

Choose a reason for hiding this comment

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

Let's convert this over to a --verbose flag in CLI arguments rather than as a build time constant.

@novabyte
Copy link
Member

novabyte commented Feb 6, 2017

@mofirouz Thanks. I'll merge it in. 👍

novabyte pushed a commit that referenced this pull request Feb 6, 2017
@novabyte novabyte closed this Feb 6, 2017
@novabyte novabyte deleted the mhf-fix-session-close-race branch February 6, 2017 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants