dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.2.5
postmodern has joined #cinch
Lirion has quit [Quit: (WeeChat upgrade)]
Lirion has joined #cinch
txdv_ is now known as txdv
postmodern has quit [Quit: Leaving]
argoneus is now known as Kingsquee
irsol has quit [Ping timeout: 256 seconds]
Kingsquee is now known as argoneus
irsol has joined #cinch
britneywright has joined #cinch
eebs has joined #cinch
eebs has left #cinch [#cinch]
eebs has joined #cinch
eebs is now known as eebs_
eebs_ is now known as eebs
eebs1 has joined #cinch
eebs has quit [Quit: Leaving.]
eebs has joined #cinch
Namaste_ has joined #cinch
_djbkd has joined #cinch
Namaste_ has quit [Quit: You're a LOSER, and your dad probably beat you when you were a kid... which was probably two weeks ago]
eebs has quit [Quit: Leaving.]
Namaste_ has joined #cinch
eebs has joined #cinch
postmodern has joined #cinch
_djbkd has quit [Remote host closed the connection]
Namaste_ has quit [Quit: You're a LOSER, and your dad probably beat you when you were a kid... which was probably two weeks ago]
_djbkd has joined #cinch
_djbkd has joined #cinch
<eebs> I'm seeing an issue were if I add a formatted logger where the output is a File object, the logs are not written to the file immediately. There is a several minute delay between the logs being generated (and displayed in stdout) and the logs being written to the file. I see that the logger uses a mutex to allow multiple threads to write to the log, could that be causing an issue? I am creating the bot/loggers like so: https://gist.github.com/anonymous/68d10f7b3e2
<leftylink> complete wild guess that I have no basis for believing is correct but gotta throw it out there anyway
<eebs> leftylink: those are the best! ;)
<leftylink> is this just normal behavior that writes to files are buffered? maybe should flush?
_djbkd has quit [Remote host closed the connection]
<leftylink> I give less probability to the mutex being a problem because logs to the console generaly seem snappy, see...
<eebs> leftylink: that was kinda my thought as well. I didn't see anything in cinch that really looked like it would cause this
<eebs> I'll see if I can find anything regarding file buffering
<eebs> Okay yup. If I call File.sync=true on my file objet it writes immediately
<leftylink> oooh
_djbkd has joined #cinch
_djbkd has quit [Read error: Connection reset by peer]
_djbkd has joined #cinch
<eebs> So that at least achieves the behavior I wanted. What that really does is turns off ruby internal buffering. It looks like calling IO.fsync will flush the buffers on demand, but that would perhaps have to be called after each call to @output.puts <message>, and thus require a change in cinch
rikai has quit [*.net *.split]
catepillar has quit [Ping timeout: 244 seconds]
Namaste_ has joined #cinch
catepillar has joined #cinch
rikai has joined #cinch
_djbkd has quit [Remote host closed the connection]
Namaste_ has quit [Quit: You're a LOSER, and your dad probably beat you when you were a kid... which was probably two weeks ago]
_djbkd has joined #cinch
Namaste_ has joined #cinch
Namaste_ has quit [Client Quit]
eebs has quit [Quit: Leaving.]
Namaste_ has joined #cinch
Namaste_ has quit [Quit: You're a LOSER, and your dad probably beat you when you were a kid... which was probably two weeks ago]
eebs has joined #cinch
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #cinch
<dominikh> if Ruby wasn't insane, then it wouldn't apply buffering by default ;)
<dominikh> and yeah, I won't flush, so set sync=true :)
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eebs1> dominikh: sounds good, I figured you wouldn't want to make that a core change
_djbkd has quit [Remote host closed the connection]
CM-Punk has quit [Quit: You're a LOSER, and your dad probably beat you when you were a kid... which was probably two weeks ago]
_djbkd has joined #cinch
_djbkd has quit [Quit: My people need me...]
eebs1 has quit [Quit: Leaving.]
_djbkd has joined #cinch
_djbkd has quit [Read error: Connection reset by peer]
_djbkd has joined #cinch
eebs has quit [Quit: Leaving.]
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #cinch
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #cinch