Closed cep21 closed 9 years ago
Thanks for the bug report. I'm traveling today but will take a look at it tomorrow.
It looks like you're using lumberjack v1. I would recommend switching to lumberjack v2. (gopkg.in/natefinch/lumberjack.v2). I made several improvements, and it's currently in production use in a large number of installations as a part of Juju (https://jujucharms.com). I'll look at this panic, but I wouldn't recommend using v1 if you have the option. It's deprecated in favor of v2.
Hi,
Thanks for looking into this.
I'm developing off of the master branch and using godep to manage the dependencies of my binary. Most open source golang projects release the latest version of their code on the master branch.
It appears you've deprecated your master branch. The behavior most consistent with the golang community would be to have the latest version of your code on the master branch and save tags for people that want a specific API. Deprecating the master branch could lead to confusion for people using go get on this github repository.
Rather than deprecated it, why not remove or rename it to prevent any confusion?
Agree with @cep21
You can use go get to get the v2 branch of this code by simply doing go get gopkg.in/natefinch/lumberjack.v2
. Using gopkg.in to control versioning of repos is fairly common practice, or at least not uncommon.
I could, in theory, break or remove the master branch so that no one can use it, but that doesn't seem very user friendly. I put a deprecation warning in the readme for the master branch... unfortunately there's no way to emit a warning when you compile, other than to actually break the code and stop it from compiling, which I don't really want to do (and which wouldn't work if you're pinning the revision using godep anyway).
Hi,
After about 20-ish hours of working my application crashes with the following panic() in lumberjack.
Could there be some kind of out of order condition that could cause files[] to panic?
Using version:
panic: runtime error: slice bounds out of range
This looks like this area of code for me: