You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by GitBox <gi...@apache.org> on 2019/03/06 15:42:06 UTC

[GitHub] [knox] smolnar82 opened a new pull request #64: KNOX-1803 - Stop redirecting stderr & stdout to a file when the server runs in the foreground

smolnar82 opened a new pull request #64: KNOX-1803 - Stop redirecting stderr & stdout to a file when the server runs in the foreground
URL: https://github.com/apache/knox/pull/64
 
 
   ## What changes were proposed in this pull request?
   
   Gateway's output (both standard output and error) is being redirected even if the `GATEWAY_SERVER_RUN_IN_FOREGROUND` environment variable is set to `true`. This should be stopped so that end-users get immediate feedback in case of any error upon startup (without browsing error/output files).
   
   ## How was this patch tested?
   
   Manual testing:
   ```
   $ export GATEWAY_SERVER_RUN_IN_FOREGROUND=true
   
   $ echo $GATEWAY_SERVER_RUN_IN_FOREGROUND
   true
   
   $ ./knox-1.3.0-SNAPSHOT/bin/gateway.sh start
   log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
   log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender.
   ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services