ACK, this shows timestamp now, with one comment inline.<br><br><div class="gmail_quote">On Tue, Feb 17, 2009 at 4:23 PM, Ian Main <span dir="ltr"><<a href="mailto:imain@redhat.com">imain@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Sadly there's a bug in rails that overrides the logger format causing<br>
the non-existant formatting we were seeing.  This is ugly but fixes the<br>
issue.<br>
<br>
Signed-off-by: Ian Main <<a href="mailto:imain@redhat.com">imain@redhat.com</a>><br>
---<br>
 src/task-omatic/taskomatic.rb |   13 +++++++++++++<br>
 1 files changed, 13 insertions(+), 0 deletions(-)<br>
<br>
diff --git a/src/task-omatic/taskomatic.rb b/src/task-omatic/taskomatic.rb<br>
index 65aac32..f6f7f39 100755<br>
--- a/src/task-omatic/taskomatic.rb<br>
+++ b/src/task-omatic/taskomatic.rb<br>
@@ -35,6 +35,19 @@ require 'task_vm'<br>
 require 'task_storage'<br>
 require 'vnc'<br>
<br>
+# This sad and pathetic readjustment to ruby logger class is<br>
+# required to fix the formatting because rails does the same<br>
+# thing but overrides it to just the message.<br>
+#<br>
+# See eg: <a href="http://osdir.com/ml/lang.ruby.rails.core/2007-01/msg00082.html" target="_blank">http://osdir.com/ml/lang.ruby.rails.core/2007-01/msg00082.html</a><br>
+#<br>
+class Logger<br>
+  def format_message(severity, timestamp, progname, msg)<br>
+    "#{timestamp} (#{$$}) #{msg}\n"</blockquote><div>Why not include severity here as in default logger, especially since it is passed in? <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
+  end<br>
+end<br>
+<br>
+<br>
 class TaskOmatic<br>
<br>
   include MonitorMixin<br>
<font color="#888888">--<br>
1.6.0.6<br>
<br>
_______________________________________________<br>
Ovirt-devel mailing list<br>
<a href="mailto:Ovirt-devel@redhat.com">Ovirt-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/ovirt-devel" target="_blank">https://www.redhat.com/mailman/listinfo/ovirt-devel</a><br>
</font></blockquote></div><br>