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

Reverse log level order for all levels so that syslog can be used again #290

Closed
wants to merge 6 commits into from

Conversation

mheap
Copy link

@mheap mheap commented Jul 31, 2013

Fixes #249. As syslog level numbers now conform to the RFC, we need to reverse the order of the NPM and CLI loggers too, as well as the comparison which checks levels before logging

@mheap
Copy link
Author

mheap commented Aug 10, 2013

Any idea if this can be merged in?

@3rd-Eden
Copy link
Contributor

@mheap Could you add a test to prevent regression as this was already once broken before?

@mheap
Copy link
Author

mheap commented Aug 10, 2013

@3rd-Eden Had to do a little refactoring to get the data I needed out, but I've added three tests, one for each supplied set of config levels

@3rd-Eden
Copy link
Contributor

@mheap It seems that some of your changes causes the test suite to fail on Node 0.6

@mheap
Copy link
Author

mheap commented Aug 12, 2013

Runs fine for me on 0.6.21 locally. According to Travis, the build stalled rather than failing.
Anyone with access can restart the build at https://travis-ci.org/flatiron/winston/builds/10067336

Edit: Just spotted that it was restarted 2 hours ago. Not sure what's going on there.

@mheap
Copy link
Author

mheap commented Aug 16, 2013

@3rd-Eden Any ideas what might be causing the build to stall on Travis?

@mheap
Copy link
Author

mheap commented Aug 22, 2013

@3rd-Eden Ping. Can we merge this anyway? It's a blocker for a lot of people that are using syslog levels

@3rd-Eden
Copy link
Contributor

@mheap I'm not merging this in until the tests are passing. I simply don't want new code to break the library as those tests we're added for a reason.

@mheap
Copy link
Author

mheap commented Aug 22, 2013

@3rd-Eden Any ideas why they're stalling on Travis? I can run them fine locally with the exact version that Travis uses

@mheap
Copy link
Author

mheap commented Aug 22, 2013

@3rd-Eden Interestingly, it builds fine for me - https://travis-ci.org/mheap/winston/jobs/10511961

The Node 0.8 tests stall instead, though

Edit: Interestingly, the last test run is the same both times: " An instance of the Daily Rotate File Transport after the logs have flushed the query() method using a bad from and until option
✓ should return no results"

@mheap
Copy link
Author

mheap commented Nov 18, 2013

@3rd-Eden Tests seem to be passing now on Travis. No change to the code, but as the error was that it was stalling and I couldn't reproduce locally, I'm not convinced there was ever an issue there

My test run is located at : https://travis-ci.org/mheap/winston
If you can trigger the build again at https://travis-ci.org/flatiron/winston/builds/14151171, we can see if it completes and if it does, get it merged in

@julien51
Copy link

Any progress on this?

@mheap
Copy link
Author

mheap commented Jan 10, 2014

@julien51 I can't reproduce the travis stalling issue consistantly. It looks like the tests just hang (I think it's to do with an early return if some setup fails, that doesn't call the callback) but I haven't had time to really dig into it

@julien51
Copy link

Dammit. Is stalling just for 0.6 ? How far back does winston has to support?

@julien51
Copy link

Hum. At this point, even master fails to build for me :(

@mheap
Copy link
Author

mheap commented Apr 23, 2015

@indexzero It's been a while, but I just triggered another build of this and the tests all passed. I think it was to do with some test setup previously (the failing tests were nothing to do with my changes).

As it's passing now, any chance of getting it merged?

@mheap
Copy link
Author

mheap commented May 1, 2015

cc @3rd-Eden on this PR, now with tests passing

@indexzero
Copy link
Member

This has been resolved in the 2.x branch. We will be releasing winston@2.0.0 shortly with this fix.

@indexzero indexzero closed this Sep 18, 2015
@indexzero
Copy link
Member

And thanks again for your contribution!

This was referenced Oct 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Syslog levels regression
4 participants