Hi Thomas,

OK I added a logging event to WorkerThread. Instead of calling 
setStatusBarText(), I added a logger.info() call, which is recorded to the 
console as well as to the status bar.

Cheers,

Tomas


On Dec 3, 2014, at 18:53, TFRD (Thomas Franck Dyrlund) 
<t...@steno.dk<mailto:t...@steno.dk>> wrote:

A simple solution is to add the following to WorkerThread.java before marking 
the thread as finished (l.107):
if (actualTask.getStatus() == TaskStatus.FINISHED) {
          SimpleDateFormat sdf = new SimpleDateFormat("h:mm:ss a");
          MZmineCore.getDesktop().setStatusBarText("[" + 
sdf.format(Calendar.getInstance().getTime())
                   + "] Task finished: " + actualTask.getTaskDescription());
}

Please let me know what you think.

Best

Thomas

From: Tomas Pluskal [mailto:plus...@oist.jp]
Sent: 2. december 2014 16:14
To: Developer discussion
Subject: Re: [Mzmine-devel] WorkerThread only logs start of task

Hi Thomas,

There is no particular reason for that, expect we need to think a bit how to 
solve this in a systematic manner.
Currently, only logger events with the level of INFO and higher are shown in 
the status bar.
Events with lower levels are shown only in the console.

If you think of a nice, elegant solution for this, feel free to implement it.

Cheers,

Tomas



On Tue, Dec 2, 2014 at 11:18 PM, TFRD (Thomas Franck Dyrlund) 
<t...@steno.dk<mailto:t...@steno.dk>> wrote:
Is there a reason why a new task is only logged when starting and not also when 
finishing in WorkerThread.java?

I think this is a bit confusing because if I start a SQL export and get an 
error, then MZmines statusbar will keep showing the error, even if I correct it 
and the SQL export completes successfully afterwards.
<image001.png>

Best,

Thomas

____________________________

Thomas F. Dyrlund
Post Doctoral Researcher
Research, Systems Medicine

Steno Diabetes Center A/S
Niels Steensens Vej 2-4
DK-2820 Gentofte
Denmark
+45 3968 0800<tel:%2B45%203968%200800> (phone)
+45 3079 9290<tel:%2B45%203079%209290> (mobile)
t...@steno.dk<mailto:t...@steno.dk>

This e-mail (including any attachments) is intended for the addressee(s) stated 
above only and may contain confidential information protected by law. You are 
hereby notified that any unauthorized reading, disclosure, copying or 
distribution of this e-mail or use of information contained herein is strictly 
prohibited and may violate rights to proprietary information. If you are not an 
intended recipient, please return this e-mail to the sender and delete it 
immediately hereafter. Thank you.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk_______________________________________________
Mzmine-devel mailing list
Mzmine-devel@lists.sourceforge.net<mailto:Mzmine-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/mzmine-devel

===============================================
Tomas Pluskal
G0 Cell Unit, Okinawa Institute of Science and Technology Graduate University
1919-1 Tancha, Onna-son, Okinawa 904-0495, Japan
WWW: https://groups.oist.jp/g0
TEL: +81-98-966-8684
Fax: +81-98-966-2890

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Mzmine-devel mailing list
Mzmine-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mzmine-devel

Reply via email to