Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Logs are all sent to stderr #413

Open
AntoineAugusti opened this issue Feb 22, 2022 · 1 comment
Open

Logs are all sent to stderr #413

AntoineAugusti opened this issue Feb 22, 2022 · 1 comment
Labels
Milestone

Comments

@AntoineAugusti
Copy link
Contributor

Summary:

When running the program on the CLI in batch mode, all logs are sent to stderr even without errors.

Steps to reproduce:

Run a command like

java -jar /usr/local/bin/gtfs-realtime-validator-lib-1.0.0-SNAPSHOT.jar -gtfs file.zip -gtfsRealtimePath /tmp/path

Expected behavior:

Logs should be logged to stdout and errors should be logged to stderr

Observed behavior:

All logs, including info are sent to stderr.

This is the default behaviour of this library https://www.slf4j.org/api/org/slf4j/impl/SimpleLogger.html

org.slf4j.simpleLogger.logFile - The output target which can be the path to a file, or the special values "System.out" and "System.err". Default is "System.err".

Platform:

macOS
JDK 8

@barbeau barbeau added the bug label Feb 22, 2022
@barbeau barbeau added this to the v1.0 milestone Feb 22, 2022
@barbeau
Copy link
Member

barbeau commented Feb 22, 2022

Thanks @AntoineAugusti for reporting this!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants