Displaying 20 results from an estimated 30000 matches similar to: "custom format with BufferedLogger?"
2012 Oct 25
0
[Rails 3.2.8] ActiveSupport::BufferedLogger extension, undefined_method
I tried to extend it , with this class , loaded at config time :
config.autoload_paths += Dir["#{config.root}/lib",
"#{config.root}/lib/**/", "#{config.root}/app/inputs"]
lib/extension.rb
class ActiveSupport::BufferedLogger
def detailed_error(e)
error(e.message)
e.backtrace.each{|line| error line }
end
end
but calling it in my controller
rescue
2008 Feb 19
0
Rails logger change format
Hi guys,
After few investigations I still cannot change the format of logs from
rails 2.0.2 apps.
I tried with overwriting the format_message method from Logger class and
still nothing. I know that in Rails 2.0.2 BufferedLogger is used and I
didn''t manage to change the format for this one.
What seems to be the easiest way to do that ?
Thanks in advance.
--
Posted via
2009 Oct 14
18
sybase in rails2?
Has anyone actually gotten the activerecord-sybase-adapter to work in
Rails2?
I can''t seem to, and can''t figure out why. I am on RedHat linux.
I have the sybase client libraries installed, I have the adapter
installed. After installing the patch at
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2455-update-for-sybase_adapter#ticket-2455-4
to get a slightly
2010 Aug 09
0
Logging form delayed job class
I have asked this before without any luck, trying again.
this is what I have in my dj.rb initializer
Delayed::Worker.backend = :active_record
Delayed::Worker.logger = Rails.logger
#Delayed::Worker.logger = ActiveSupport::BufferedLogger.new("log/
##{Rails.env}_delayed_jobs.log", Rails.logger.level)
class Delayed::Job
def logger
Delayed::Worker.logger
end
end
if
2010 Apr 29
1
Duplicated DTMF with bridged IAX channels maybe?
Hi,
I have a duplicated DTMF issue with, it appears, bridged IAX channels.
I have the following setup:
PRI IAX
<-------->* PSTN <------->* Dialplan
I've configured a number on the dialplan server to make and outbound
call to the pstn. This call then comes back into the dialplan server
to SayDigits().
I'm seeing that a few of my digits are being duplicated
2006 Nov 22
0
iax2 - wildiax phone & myself puzzled
I know in advance maybe I'm overlooking something stupid,
however I'm really lost and cannot find the solution...
Situation:
- asterisk-1.2.13 on a linux box with no iptables active.
- one iax2 peer defined
- one wildiax phone running on my laptop
the soft phone is configured to connect & register on asterisk,
however, I cannot get it working.
What am I missing? Please help!!
2010 Jul 12
0
DTFM Detection issues
Hi list,
I'm having trouble with DTFM tones detection. Usually, some tones are
being received duplicated in Asterisk, some not. As you can imagine,
that's a very big problem involving IVR menu options, Meetme conferences
protected with passwords, and so on.
We are currently using DAHDi 2.2.0.2, module wct4xxp, which is managing
a Digium TE220B card, with a hardware echo canceller
2010 Jun 17
1
DTMF detection issues
Hi list,
I'm having trouble with DTFM tones detection. Usually, some tones are
being received duplicated in Asterisk, some not. As you can imagine,
that's a very big problem involving IVR menu options, Meetme conferences
protected with passwords, and so on.
We are currently using DAHDi 2.2.0.2, module wct4xxp, which is managing
a Digium TE220B card, with a hardware echo canceller
2008 Jun 24
9
ActiveRecord 2.1 Migration support
Hi all,
I am in the process of adding Migration support to the Ingres
ActiveRecord adapter and have run in to a problem. During the call to
create_table the Ingres adapter some how causes ruby to blow the stack
and coredump/segv. I have tracked down the problem down to
"add_column_options!" in
"lib/active_record/connection_adapters/abstract/schema_statements.rb".
2008 Jun 24
9
ActiveRecord 2.1 Migration support
Hi all,
I am in the process of adding Migration support to the Ingres
ActiveRecord adapter and have run in to a problem. During the call to
create_table the Ingres adapter some how causes ruby to blow the stack
and coredump/segv. I have tracked down the problem down to
"add_column_options!" in
"lib/active_record/connection_adapters/abstract/schema_statements.rb".
2009 May 06
0
problems in h323 channels
Hi, all!
when my h323 phone dial in Asterisk system, i can hear nothing. and
the following is the log slice i picked from /var/log/asterisk/full.
ps: i am using red hat AS5 kernel 2.6.18-53.el5,Asterisk-1.4.24.1,
pwlib_v1_11_0, openh323_v1_19_0_1.
Best
Regards!
81948 [May 6 10:07:34] VERBOSE[11579] logger.c: -- Remote UNIX connection
81949 [May 6 10:07:51] VERBOSE[29627] logger.c:
2008 Jul 16
0
ISDN Call Droping only for outgoing
I have been trying to sort this out for a while now but with no luck
I have isdn <-> asterisk<-> pabx on a te205
incoming calls work fine
outgoing calls seem to work fine but the call is dropped when answered
I think it is to do with the line
[May 8 17:51:55] WARNING[4762] channel.c: Unexpected control subclass '5'
that is causing the problem but I don't know how to
2007 Jul 24
0
Diva Server BRI hangs up after about 25 seconds
I have a Diva Server BRI installed in a Debian system
running Asterisk 1.2.22. When a call comes in the
Background application plays a couple of times.
Halfway through the second time, the call is
disconnected (total time connected about 25 seconds).
I've posted various configs below. Any advice on how
to debug would be appreciated. We are located in New
Zealand.
CLI showing capi debug (just
2006 Oct 16
1
Page hangs up after 5 seconds
Hi asterisk-users,
We are using Asterisk 1.2.12.1, and are trying to use the Page
application. It seems to work but after approx 4-5 seconds the call is
hung up.
The dialplan code look like this:
exten => _*2XX,1,AGI(get-paging-devices.agi,${EXTEN:2})
exten => _*2XX,n,GotoIf($[ "${PAGING_DEVICES}" = "invalid" ]?i,1)
exten => _*2XX,n,SIPAddHeader(Call-Info:
2012 Mar 02
0
ConnectionNotEstablished when using connection on AR::Base abstract subclass
I''m using AR outside of Rails and calling establish_connection on an
ActiveRecord::Base abstract_class subclass (to protect my connection
in case anyone else is using AR). It was working just fine with AR
3.0.9, but I recently attempted to upgrade to AR 3.2.2. Now, when I
hit a "nested" query from a has_many, I get a
ActiveRecord::ConnectionNotEstablished. If I call
2009 Apr 30
3
Logging - using a different log for one method
Hi there,
I''m wondering if there''s a way to have any log statements generated
from a specific method on a model get logged into a separate file from
the normal development/production log files?
i.e. I want the whole app to log as normal, apart from the
Sprinter.run_often method, which I''d like to log to
sprinter_running.log
Cheers,
Tim.
2009 Jul 07
1
[PATCH] Set up ovirt-agent so it starts as a daemon
This sets up ovirt-agent to start as a daemon along with dbomatic,
taskomatic etc. While this is not ready for prime time I think it
should be ok as you still require a valid, authenticated, connection
to qpidd to access it.
Signed-off-by: Ian Main <imain at redhat.com>
---
installer/modules/ovirt/manifests/ovirt.pp | 6 +++
ovirt-server.spec.in | 5 ++
2006 Apr 04
1
"uninitialized constant Reloadable" error heads-up
I can''t duplicate this problem on my local machine, but also can''t find any
mentions of it on the Gmane archive, so thought I''d just throw in a quick
mention in case anyone else comes across it.
On Textdrive, using gem rails 1.1, in an app that works fine on my local
machine, I get the following error in my production.log:
"uninitialized constant
2006 Aug 06
2
Rails logger: how to access it in a my own class
Hey Guys,
The only way I could find to access the Rails logger object was to
subclass from ApplicationController... can anyone suggest a more
sensible way of doing it?
Soroe.
--
Posted via http://www.ruby-forum.com/.
2010 Aug 23
7
Sharing sessions between a rails3 app and a rails2 app. Rails 2 app crashes.
Hey all.
I have two apps. One is a rails3 app and the other is a rails 2 app.
Using proxying I am routing actions in the myapp.com/foo to the rails2
app.
It almost works! I can set a session variable and a cookie variable on
the first app (myapp.com) and then read them on the second app
(myapp.com/foo).
It only works the first time though. If I go back to myapp.com and
then revisit