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.

Double printed config

See original GitHub issue

Hey everybody,

I have the problem that each log message is printed out twice. Once with the module name and once with HYDRA (see example output):


[2021-06-08 08:14:54,738][HYDRA] config initialized
[2021-06-08 08:14:54,738][soundmap.util.config][INFO] - config initialized
[2021-06-08 08:14:54,794][HYDRA] starting process image_acquisition_task with pid: 8954
[2021-06-08 08:14:54,794][soundmap.process.process_manager][INFO] - starting process image_acquisition_task with pid: 8954

This feels more like a wrong configuration on my side than a bug. My config looks like this:

defaults:
  - data: data
  - task: task
  - util: util

simulation: false
visualization: true
benchmark: true

hydra:
  output_subdir: null
  job_logging: null
  run:
    dir: .

The goal behind my config is to disable the output dir for the moment and only print the logs to the console. Later on I want to take advantage of the extra output dir and the file logging.

Any suggestions how to resolve this problem?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
omrycommented, Jun 8, 2021
  1. Are you attempting to configure the logging directly in your application?
  2. Can you produce a minimal runable example reproducing this?
0reactions
omrycommented, Jun 9, 2021

#1661 is preventing the assignment of null to hydra.hydra_logging and hydra.job_logging. This is not something that was ever supported.

As Jieru suggested, you can override override /hydra/job_logging and hydra/hydra_logging.

These are your options (you can also create your own, see how to customize the logging):

python my_app.py --hydra-help | grep "^hydra/.*logging"
hydra/hydra_logging: default, disabled, hydra_debug, none
hydra/job_logging: default, disabled, none, stdout

Specifically, job_logging comes with a built in config for outputing to stdout but hydra_logging does not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting Your Printer to Double-Sided Printing on a Windows ...
An instructional video produced by the Harvard Office for Sustainability's Green Office Program.
Read more >
Print on both sides of the paper (duplex printing) in Word
Print by using manual duplex · Click the File tab. · Click Print. · Under Settings, click Print One Sided, and then click...
Read more >
How to print double-sided on a Windows PC using any printer
1. Open the document you want to print and select "File." ; 2. Choose "Print." ; 3. In the print menu, click the...
Read more >
Double-sided printer settings - FinePrint
You can configure your printer for double-sided printing in the Printers tab of the Setttings dialog box as shown here. image. Settings can...
Read more >
Double-sided Printing in Windows 10 | Information Technology
Occasionally in Windows 10, trying to print a double-sided document after ... The last tab of the Printer Properties dialog box should say...
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