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

Use our logger instead of console.{log,error} for LDAP logs #552

Merged
merged 1 commit into from
Aug 11, 2016

Conversation

astorije
Copy link
Member

@astorije astorije commented Aug 10, 2016

Ping @thisisdarshan and @lindskogen, could you let us know if the LDAP part looks fine to you?
Note that when running a public instance and LDAP, the LDAP part is now ignored and a warning is shown instead of crashing the app. @maxpoulin64, does that seem sensible to you?

@astorije astorije added the Type: Feature Tickets that describe a desired feature or PRs that add them to the project. label Aug 10, 2016
@astorije astorije added this to the 2.0.0 milestone Aug 10, 2016
@maxpoulin64
Copy link
Member

maxpoulin64 commented Aug 10, 2016

Actually we left those as console.log on purpose since they are not logging but command-line outputs. It's a bit like if ls added [INFO] on every line, a bit odd...

@astorije
Copy link
Member Author

astorije commented Aug 10, 2016

Actually we left those as console.log on purpose

I couldn't find discussion about this on GitHub, maybe it was IRC. Should we get rid of https://github.com/thelounge/lounge/pull/552/files#diff-c634a78f476381115a1c873dc965554dR10 then?

Also, this is not the important part of the PR lol, what about the other changes (related to recent LDAP support, #477)?

@astorije astorije changed the title Use our logger instead of console.{log,error} Use our logger instead of console.{log,error} for LDAP logs Aug 10, 2016
@maxpoulin64
Copy link
Member

Ah yes, remove that and the other part is definitely 👍 especially the throw. Confused the two PRs for a moment 😅

@astorije
Copy link
Member Author

astorije commented Aug 10, 2016

@maxpoulin64, removed the changes in list, we can take this later anyway, I think the LDAP stuff is more important and valid on its own. Your 👎 hurts my feelings 😂.

(Maybe wait for @thisisdarshan and/or @lindskogen to comment on this before merging)
(Also, are you OK with ignoring LDAP settings in public mode or should we not run the app when this happens? I'm not too set on this...)

@maxpoulin64
Copy link
Member

Actually I -1'd to prevent a merge because I can't add labels on mobile 😶

@maxpoulin64 maxpoulin64 added Meta: Do Not Merge This PR should not be merged. and removed second review needed labels Aug 10, 2016
@astorije
Copy link
Member Author

I'm not too fond of crashing the app but that's definitely one option (the one currently, which would change by getting rid of the throw).

A third option is to assume mode is private when ldap.enable is true.

Thoughts?

@maxpoulin64
Copy link
Member

Okay I'm just bad at communicating tonight. Meant, the other stuff is good changes, including the removal of the throw 😅

@maxpoulin64 maxpoulin64 removed the Meta: Do Not Merge This PR should not be merged. label Aug 11, 2016
@maxpoulin64 maxpoulin64 merged commit bec0c74 into master Aug 11, 2016
@maxpoulin64 maxpoulin64 deleted the astorije/logger branch August 11, 2016 05:44
matburnham pushed a commit to matburnham/lounge that referenced this pull request Sep 6, 2017
Use our logger instead of console.{log,error} for LDAP logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Tickets that describe a desired feature or PRs that add them to the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants