Menu ▾ ▴

#22 Hang if the logfile is uncreateable

0.9.3.1
open
5
2002-01-15
2001-11-02
No

If the logfile specified gets a name that is illegal
on the platform FileHandler runs wild trying to create
files with different numbers appended.

CREATE <illegal ?: filename>.0 FAIL
CREATE <illegal ?: filename>.1 FAIL
CREATE <illegal ?: filename>.2 FAIL
CREATE <illegal ?: filename>.3 FAIL
CREATE <illegal ?: filename>.4 FAIL
... (10 days later)
CREATE <illegal ?: filename>.2412410 FAIL
CREATE <illegal ?: filename>.2412411 FAIL
CREATE <illegal ?: filename>.2412412 FAIL

Discussion

  • Daniel Bratell

    Daniel Bratell - 2001-11-02
    • labels: --> FileHandler
     
  • Daniel Bratell

    Daniel Bratell - 2001-11-02

    Logged In: YES
    user_id=306784

    This is with 0.8.7 on Windows

     
  • Brian R. Gilstrap

    Logged In: YES
    user_id=101085

    In what way is the logfile name illegal?

    The spec says that if the file can't be created then a new
    file name with a uniqueness ID should be generated and a
    retry should be done. So, Lumberjack is acting technically
    within the spec.

    That said, I'd like to catch common unrecoverable problems
    and address them so that we don't try forever. What file
    pattern did you use that was illegal and caused this behavior?

     
  • Daniel Bratell

    Daniel Bratell - 2001-11-13

    Logged In: YES
    user_id=306784

    I'm not completly sure but it was something with colon (:) and percentage signs (?) which are illegal
    filenames in MS Windows.

     
  • Brian R. Gilstrap

    • assigned_to: nobody --> gilstrap
     
  • Brian R. Gilstrap

    • milestone: --> 0.9.3.1
     

Log in to post a comment.