Permalink
Browse files

add timestamp to error messages

  • Loading branch information...
1 parent ffac662 commit 101f0b6bb69301addf3d6a50ab8c698d520720be @gnufied committed Apr 29, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 server/lib/meta_worker.rb
@@ -323,12 +323,12 @@ def invoke_user_method user_method,args
end
[t_result,"ok"]
rescue Object => bdrb_error
- puts "Error calling method #{user_method} with #{args} on worker #{worker_name}"
+ puts "Error calling method #{user_method} with #{args} on worker #{worker_name} at #{Time.now}"
log_exception(bdrb_error)
[t_result,"error"]
end
else
- puts "Trying to invoke method #{user_method} with #{args} on worker #{worker_name} failed because no such method is defined on the worker"
+ puts "Trying to invoke method #{user_method} with #{args} on worker #{worker_name} failed because no such method is defined on the worker at #{Time.now}"
[nil,"error"]
end
end

0 comments on commit 101f0b6

Please sign in to comment.