Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log messages do not contain a timestamp #34

Closed
jheinitz opened this issue Jun 19, 2020 · 5 comments
Closed

Log messages do not contain a timestamp #34

jheinitz opened this issue Jun 19, 2020 · 5 comments
Assignees

Comments

@jheinitz
Copy link

Hello,

I like your image and it makes it very easy to setup a feeder for FlightAware. I'm using a docker-compose setup which makes it even more easier to maintain for me. However, when I look at the output from docker-compose logs, I do not see any timestamps. Is it possible to change that somewhere or is it an issue of the piaware software itself? Please see my log for reference:

user1@server1:/opt/docker-piaware$ docker-compose logs --tail=5
Attaching to piaware
piaware | [piaware] 268 msgs recv'd from dump1090 (78 in last 5m); 268 msgs sent to FlightAware
piaware | [piaware] 292 msgs recv'd from dump1090 (24 in last 5m); 292 msgs sent to FlightAware
piaware | [piaware] 319 msgs recv'd from dump1090 (27 in last 5m); 319 msgs sent to FlightAware
piaware | [piaware] 324 msgs recv'd from dump1090 (5 in last 5m); 324 msgs sent to FlightAware
piaware | [piaware] 407 msgs recv'd from dump1090 (83 in last 5m); 407 msgs sent to FlightAware
user1@server1:/opt/docker-piaware$

Best regards

Jens

@mikenye mikenye self-assigned this Jun 22, 2020
mikenye added a commit that referenced this issue Jun 22, 2020
Implement request in issue #34
@mikenye
Copy link
Member

mikenye commented Jun 22, 2020

Hi Jens,

Unfortunately, piaware doesn't include the date/time in their log messages. However, I pipe the logs through awk to add the [piaware] text, so I've modified the awk syntax to include the current date/time.

If you re-pull the image, you should see the date/time included for the piaware logs.

Let me know if this solves your problem.

Kind regards,
Mike Nye

@jheinitz
Copy link
Author

jheinitz commented Jun 22, 2020 via email

@mikenye
Copy link
Member

mikenye commented Jun 22, 2020

OK, I've changed the buffering for the awk instances. Can you re-pull and try again?

@jheinitz
Copy link
Author

jheinitz commented Jun 22, 2020 via email

@mikenye
Copy link
Member

mikenye commented Jun 22, 2020

No problems, thanks!

@mikenye mikenye closed this as completed Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants