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.

Ghost outputs duplicate log entries in production mode

See original GitHub issue

(Copied from https://github.com/TryGhost/Ghost-CLI/issues/741, as it was determined to be a Ghost issue rather than a CLI issue)

Issue Summary

ghost log -f shows every log entry twice. After looking deeper, it looks like the lines in the logfile generated by Bunyan are duplicated. This was also mentioned in the forum: https://forum.ghost.org/t/scheduled-posts-dont-publish/1179/28

Steps to Reproduce

  1. Install Ghost
  2. Run Ghost in production mode
  3. Look at the contents of the production logfile
  4. Notice that lines are repeated

Technical details:

  • Ghost Version: 1.7.3
  • Node Version: 6 & 8
  • Browser/OS: macOS/Ubuntu
  • Database: n/a

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
evexoiocommented, Jun 1, 2018

@kirrg001 Thanks! I could reproduce using your config,

turned out the bug was in Ignition, when rotation was enabled, it was creating 2 logging streams other than the regular ones,

you can see my PR here

0reactions
kirrg001commented, Jun 1, 2018

@evexoio Hm i think it’s related/caused by the rotation configuration.

"logging": {
        "level": "info",
        "rotation": {
            "enabled": true
        },
        "transports": ["file", "stdout"]
    }

This configuration shows duplicated entries.

Read more comments on GitHub >

github_iconTop Results From Across the Web

duplicate log entries · Issue #340 · trentm/node-bunyan - GitHub
for some reason in multiple projects I having some duplicate log entries and I don't know why and haven't seen this problem before,...
Read more >
Duplicate log output when using Python logging module
The problem is that every time you call myLogger() , it's adding another handler to the instance, which causes the duplicate logs.
Read more >
The ghost cleanup task for SQL Server Databases
This procedure cleans the ghost records on the pages of a database. It requires two arguments –database name (mandatory) and cleaning delay time ......
Read more >
Rails - Semantic Logger - Rocket Job
Semantic Logger is a feature rich logging framework, and replacement for existing Ruby or Rails loggers. Supports Syslog, Graylog, Elasticsearch, Splunk, ...
Read more >
script console output 2 duplicated entry for one log
Solved: It's really strange that our Jira script console started to output 2 entries for one log, can you advice any clue how...
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