<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span>The errors I'm expecting to see in my test are {error,emfile} because of too many http connections.</span></div><div><span>My guess is that the error_logger need a file descriptor to write to the log file.</span></div><div><span>If I'm writing an error message with the error_logger before the test, the error_logger already has a file descriptor and can use it.</span></div><div><span>If I start the test before using the error_logger, when it tries to get a file descriptor and write to the log, there are no file descriptors left.</span></div><div><br><span></span></div><div><span>Shouldn't the error_logger get the file descriptor when starting the app automatically and be immune to this kind of problem?</span></div><div><span>Maybe there is still some config options/app missing in my release?<br></span></div><div><br></div><div
 style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Pablo Platt <pablo.platt@yahoo.com><br><b><span style="font-weight: bold;">To:</span></b> "erlang-questions@erlang.org" <erlang-questions@erlang.org><br><b><span style="font-weight: bold;">Sent:</span></b> Saturday, May 21, 2011 3:09 AM<br><b><span style="font-weight: bold;">Subject:</span></b> [erlang-questions] missing error reports from erlang.log.1<br></font><br>
<meta http-equiv="x-dns-prefetch-control" content="off"><div id="yiv682779736"><div style="color:#000;background-color:#fff;font-family:arial, helvetica, sans-serif;font-size:12pt;"><div>I've created a release with rebar.</div><div>I'm starting the app with myapp/rel/myapp/bin/myapp start</div><div>Error reports are not being written to rel/myapp/log/error.log.1 although the file is created and the initialization text is written to it (LOGGING STARTED Sat May...).</div><div><br></div><div>If I'm writing one line with the error_logger in myapp_sup:init/1, compile and run the app, I do see error reports in the error.log.1 file.</div><div>The line is:<br></div><div>error_logger:error_msg("dummy error report~n")</div><div><br></div><div>Am I missing initialization of an app related to error logging or do I need to change some configurations?</div><div>Does the error_logger:error_msg fix it by forcing initialization of this
 app?</div><div><br></div><div>Thanks<br></div><div></div></div></div><meta http-equiv="x-dns-prefetch-control" content="on"><br>_______________________________________________<br>erlang-questions mailing list<br><a ymailto="mailto:erlang-questions@erlang.org" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br><br><br></div></div></div></body></html>