Coder Social home page Coder Social logo

write error (race condition?) about monolog HOT 9 CLOSED

seldaek avatar seldaek commented on July 1, 2024
write error (race condition?)

from monolog.

Comments (9)

katanacrimson avatar katanacrimson commented on July 1, 2024

It's probably file locking - I take it you're encountering this on linux?

from monolog.

pkeane avatar pkeane commented on July 1, 2024

YES - linux (RedHat):

uname -a
Linux [...].utexas.edu 2.6.32-220.7.1.el6.x86_64 #1 SMP Fri Feb 10 15:22:22 EST 2012 x86_64 x86_64 x86_64 GNU/Linux

from monolog.

katanacrimson avatar katanacrimson commented on July 1, 2024

Perhaps you should the syslog handler or hack together a handler that blind-fires to a remote logger on another system (which would be hooked up to a full DBMS) up instead - that would allow simultaneous logging.

My bet is that you're probably just hitting file locking, which isn't something that can be helped, really.

ed: SocketHandler or SyslogHandler are the best options for you IMO

from monolog.

pkeane avatar pkeane commented on July 1, 2024

Great. Thanks!

from monolog.

Seldaek avatar Seldaek commented on July 1, 2024

That's quite weird, I'd think opening a stream multiple times in "append" mode would be no problem. @damianb do you know if that's a platform specific issue?

from monolog.

katanacrimson avatar katanacrimson commented on July 1, 2024

if it was, it'd be observed much more often; it's just a linux system.

could be filesystem related, but my bet is that he's not on anything exotic; probably ext2/3/4.

from monolog.

Seldaek avatar Seldaek commented on July 1, 2024

I fixed the code now so that it doesn't hide the php error but exposes it to the user, so if you update to latest you should see different errors, and hopefully it gives us a better insight as to what is happening.

from monolog.

Seldaek avatar Seldaek commented on July 1, 2024

No news here?

from monolog.

Seldaek avatar Seldaek commented on July 1, 2024

I'll close since there is no feedback, but if it crops up again with the latest version let me know.

from monolog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.