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

Gianmarco De Francisci Morales updated PIG-1407:
------------------------------------------------

    Attachment: PIG-1407.patch

The patch simply moves the first log statement after log4j has been initialized

> Logging starts before being configured
> --------------------------------------
>
>                 Key: PIG-1407
>                 URL: https://issues.apache.org/jira/browse/PIG-1407
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.7.0, 0.8.0
>            Reporter: Gianmarco De Francisci Morales
>            Assignee: Gianmarco De Francisci Morales
>            Priority: Trivial
>             Fix For: 0.7.0, 0.8.0
>
>         Attachments: PIG-1407.patch
>
>   Original Estimate: 0.02h
>  Remaining Estimate: 0.02h
>
> Pig's Main starts logging before log4j has been configured.
> This way logging messages are mixed with pig's output.
> $ cat script.pig 
> A = LOAD 'input' AS (num:long, fruit:chararray);
> DUMP A;
> $ cat input 
> 1     orange
> 2     apple
> 3     coconut
> 4     mango
> 5     grape
> 6     pear
> $ pig -x local prova.pig > dump
> $ cat dump
> 0    [main] INFO  org.apache.pig.Main  - Logging error messages to: 
> /home/gianmarcodfm/pig-sbox/pig_1273222206353.log
> (1,orange)
> (2,apple)
> (3,coconut)
> (4,mango)
> (5,grape)
> (6,pear)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to