question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Same log line output twice?

See original GitHub issue

I add this line below in my code. logger.add(sys.stdout, colorize=True, format="<green><b>{time:YYYY-MM-DD :mm:ss}</b></green> - {level} - {file} - {line} - {message}")

The same log output twice in terminal like:

2022-03-31 18:19:10.853 | INFO | main:main:33 - Set random seed to 1 2022-03-31 :19:10 - INFO - train.py - 33 - Set random seed to 1

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Delgancommented, Oct 7, 2022

@Delgan From the sounds of it, a discussion surrounding documentation architecture might be good. A good start might just include adding a table of contents to the README. What do you think?

Sorry, I forgot to answer you. To be honest, I prefer not to overload the current README. I quite like its relative simplicity with examples and links to the documentation for details.

I’m closing this ticket as I answered the initial question, but a new one can be opened about possible documentation improvements.

0reactions
urmzdcommented, Apr 8, 2022

@Delgan From the sounds of it, a discussion surrounding documentation architecture might be good. A good start might just include adding a table of contents to the README. What do you think?

Read more comments on GitHub >

github_iconTop Results From Across the Web

log messages appearing twice with Python Logging
And for some reason, all the messages are appearing twice. I commented out one of the stream handlers, still the same thing. Bit...
Read more >
Duplicate Logging Messages in Python - jdhao's digital space
When I am working on a project, I find that the same message is printed twice. The following minimal code can reproduce this...
Read more >
4.4.3 - log[] is reading the same lines twice - ZABBIX Forums
For some reason my zabbix agent appears to be reading the same lines twice. It grabs only the newest values (so it's not...
Read more >
A Step-by-Step Guide to Python Logging - Pylenin
A comprehensive guide to understanding the advantages and usage of Python Logging module.
Read more >
Why Log statement is printing twice in console log file.
In some cases, logging output is executed twice to a log destination. This is a side effect of the Log4j additivity which is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found