ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Magda (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (IGNITE-944) HTTP REST log command doesn't work
Date Mon, 25 Jan 2016 09:39:39 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15114959#comment-15114959
] 

Denis Magda edited comment on IGNITE-944 at 1/25/16 9:38 AM:
-------------------------------------------------------------

[~samaitra]

'ignite.log' seems to be created by some tests including the one that validates this functionality
contributed by you.
Also the log file name and location may be dependent on a kind of logger that is used along
with ignite.

In general, I started an ignite node from sources (using ExampleNodeStartup) and saw that
the file in ignite-XXXXXXXX.log format was used.

My assumption is that we can a get current file name using a code snippet below.

{noformat}
String fileName;
        
        if (log.fileName() != null)
            fileName = log.fileName(); // Will return absolute path.
        else
            fileName = "work/log/ignite.log";
        
{noformat}

Saikat, please test such a solution on your side. It should work.


was (Author: dmagda):
[~samaitra]

'ignite.log' seems to be created by some tests including the one that validates this functionality
contributed by you.
Also the log file name and location may be dependent on a kind of logger that is used along
with ignite.

In general, I started an ignite node from sources (using ExampleNodeStartup) and saw that
the file in ignite-XXXXXXXX.log format was used.

My assumption is that we can a current file name using a code snippet below.

{noformat}
String fileName;
        
        if (log.fileName() != null)
            fileName = log.fileName(); // Will return absolute path.
        else
            fileName = "work/log/ignite.log";
        
{noformat}

Saikat, please test such a solution on your side. It should work.

> HTTP REST log command doesn't work
> ----------------------------------
>
>                 Key: IGNITE-944
>                 URL: https://issues.apache.org/jira/browse/IGNITE-944
>             Project: Ignite
>          Issue Type: Bug
>          Components: general, newbie
>    Affects Versions: sprint-5
>            Reporter: Sergey Kozlov
>            Assignee: Saikat Maitra
>
> Request http://localhost:8080/ignite?cmd=log&to=1&from=0 returns following
> {noformat}
> {"error":"Failed to find registered handler for command: LOG","response":null,"sessionToken":"","successStatus":1}
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message