Bug #24185

No debug logging with Foreman 1.18 RC3

Added by Trey Dockendorf 9 months ago. Updated 7 months ago.

Target version:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:


I enabled debug logging and get only information messages in production.log. I touched restart.txt several times and still the logging is not taking effect.

  :level: debug
    :type: file
    :layout: pattern

# Individual logging types can be toggled on/off here
    :enabled: true
    :enabled: true
2018-07-06T09:37:16 [I|app|] Started GET "/node/foreman-test.DOMAIN?format=yml" for at 2018-07-06 09:37:16 -0400
2018-07-06T09:37:16 [I|app|ec21f] Processing by HostsController#externalNodes as YML
2018-07-06T09:37:16 [I|app|ec21f]   Parameters: {"name"=>"foreman-test.DOMAIN"}
2018-07-06T09:37:16 [I|app|ec21f] Current user: foreman_api_admin (administrator)
2018-07-06T09:37:17 [I|app|ec21f]   Rendering text template
2018-07-06T09:37:17 [I|app|ec21f]   Rendered text template (0.0ms)
2018-07-06T09:37:17 [I|app|ec21f] Completed 200 OK in 1467ms (Views: 1.2ms | ActiveRecord: 867.0ms)

Related issues

Related to Foreman - Feature #16218: Add possibility to override log configuration for test environmentClosed2016-08-22

Associated revisions

Revision b0b46844 (diff)
Added by Lukas Zapletal 8 months ago

Fixes #24185 - logging env override config fixed (#5792)


#1 Updated by Tomer Brisker 9 months ago

  • Legacy Backlogs Release (now unused) set to 330
  • Category set to Logging

#2 Updated by Lukas Zapletal 9 months ago

  • Related to Feature #16218: Add possibility to override log configuration for test environment added

#3 Updated by The Foreman Bot 9 months ago

  • Assignee set to Lukas Zapletal
  • Status changed from New to Ready For Testing
  • Pull request added

#4 Updated by Marek Hulán 9 months ago

Which file are you changing? Also could you try restarting the whole httpd service? Also note it should be tmp/restart.txt which is touched (not sure if that still works though)

#5 Updated by Marek Hulán 9 months ago

Oh I see it has been already reproduced, please ignore my comment.

#6 Updated by Lukas Zapletal 9 months ago

  • Triaged changed from No to Yes

Yeah, bot could have set Triaged as well perhaps.

#7 Updated by Marek Hulán 8 months ago

This does not seem to be 1.18 regression, the introducing commit was merged in 1.14. It should be possible to just move production configuration to one level above under :logging and it should work just fine.

#8 Updated by Trey Dockendorf 8 months ago

Using the documented method for debug logging works just fine:

  :level: debug

I don't know where I got the idea to use the production key, maybe something from older version of Foreman that's no longer valid.

#9 Updated by Ondřej Pražák 8 months ago

  • Target version changed from 1.18.0 to 1.18.1

#10 Updated by Lukas Zapletal 8 months ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

#11 Updated by Lukas Zapletal 8 months ago

I think it was in example (commented), it is supposed to work and it had a bug. Fixed.

#12 Updated by Tomer Brisker 7 months ago

  • Fixed in Releases 1.19.0 added

Also available in: Atom PDF