You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Xilai Dai (JIRA)" <ji...@apache.org> on 2013/08/08 05:58:51 UTC

[jira] [Updated] (KARAF-2437) Logs still have been printed into console after log:tail and Ctrl + C

     [ https://issues.apache.org/jira/browse/KARAF-2437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xilai Dai updated KARAF-2437:
-----------------------------

    Description: 
With the latest 2.3.3-snapshot version, execute log:tail and then Ctrl + C, but logs will still be printed into the console continuously.

Seems a new PrintEventThread class introduced recently, but there is no any exit statement in the run() method, add code below into the beginning of run() should work:

{code}
if (!needEndLog) {
    return;
}
{code}

  was:
With the latest 2.3.3-snapshot version, execute log:tail and then Ctrl + C, but logs will still be printed into the console continuously.

Seems a new PrintEventThread class introduced recently, but there is no any exit statement in the run() method, add code below into the beginning of run() should work:

if (!needEndLog) {
    return;
}

    
> Logs still have been printed into console after log:tail and Ctrl + C
> ---------------------------------------------------------------------
>
>                 Key: KARAF-2437
>                 URL: https://issues.apache.org/jira/browse/KARAF-2437
>             Project: Karaf
>          Issue Type: Bug
>          Components: cellar-shell
>    Affects Versions: 2.3.3
>         Environment: Win7 64bit Java 7
>            Reporter: Xilai Dai
>
> With the latest 2.3.3-snapshot version, execute log:tail and then Ctrl + C, but logs will still be printed into the console continuously.
> Seems a new PrintEventThread class introduced recently, but there is no any exit statement in the run() method, add code below into the beginning of run() should work:
> {code}
> if (!needEndLog) {
>     return;
> }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira