Code Monkey home page Code Monkey logo

Comments (14)

AdSchellevis avatar AdSchellevis commented on August 30, 2024

@marjohn56 when was the last time the output was there?

from dhcp6c.

marjohn56 avatar marjohn56 commented on August 30, 2024

THAT is a really good question.. no idea, I've not had reason to wander in that area for a long time. I'll do some messing about and see if I can work out when. Certainly it was working in 19.1.*, at least the early editions. Are there any archives I can access and I'll install them one by one to try and find out where it fell over.

from dhcp6c.

AdSchellevis avatar AdSchellevis commented on August 30, 2024

In 19.7 we switched to syslog-ng, if you have a one-liner that should output something to the log, I can take a look at my end to see where it goes.

from dhcp6c.

marjohn56 avatar marjohn56 commented on August 30, 2024

from dhcp6c.

AdSchellevis avatar AdSchellevis commented on August 30, 2024

I don't see any obvious differences between the old and new logging. You could try to capture all entries and send them to a remote log server to see if it actually passes syslog-ng.

from dhcp6c.

marjohn56 avatar marjohn56 commented on August 30, 2024

OK, I've searched my downloads backup folder and have a 19.1 install file. I'll put that onto my test system and see what gives. If it's got the same problem in 19.1 then I guess it must be a dhcp6c issue, but I've looked at the code there and nothing seems out of place.

from dhcp6c.

marjohn56 avatar marjohn56 commented on August 30, 2024

Even more bizarre. Sending to a syslog server I see nothing from dhcp6c at all.

Also checked in 19.1.4, no Debug level 2 log there either.

from dhcp6c.

marjohn56 avatar marjohn56 commented on August 30, 2024

OK, some progress before I have to go and to some real work. In the syslog server I was seeing nothing from dhcp6c, I added dhcp6c to the 'routing' $logfacilities in core.inc and now I see it. I can see full debug info there, ( Once I had allowed Debug level messages ) so its definitely sending debug stuff, it's just not showing up in the normal Log Files -> General on the web interface.

from dhcp6c.

AdSchellevis avatar AdSchellevis commented on August 30, 2024

ok, so we miss dhcp6c if I understand you correctly, shouldn't it go here?

https://github.com/opnsense/core/blob/398e00c0bc06ee20e2d866ccc20dc58700196909/src/etc/inc/plugins.inc.d/core.inc#L181

from dhcp6c.

fichtner avatar fichtner commented on August 30, 2024

opnsense/core@2e314c016e12 looks like not everything lands in system log, maybe due to debug level? the move to system log was intentional, it shouldn't go to dhcpd/dhcrelay

from dhcp6c.

AdSchellevis avatar AdSchellevis commented on August 30, 2024

@fichtner I don't think debug was ever logged to system.log, I'm unsure we want that either, since services like devd can be very loud. At least we have a reason now, we could send debug output for selected services to system.log (I think we only need to add a line in the earlier mentioned log).

I forgot about the move to system.log, you're right, it should stay where it is now.

from dhcp6c.

marjohn56 avatar marjohn56 commented on August 30, 2024

The only reason I was looking for the Debug output was that there was a question about prefix length on the forum, and I wanted to show the OP how to confirm the prefix length in the logs, just to be 100% sure. I think apart from trying to get the debug output to the system log IF required, an adjustment to dhcp6c itself is required so that it sends the prefix info to the INFO log rather than the DEBUG log; at present the IA etc are sent to the INFO log but prefix is not. It's a quick fix and I'll do it and issue a PR for dhcp6c.

from dhcp6c.

marjohn56 avatar marjohn56 commented on August 30, 2024

There's another option that might work, I'll have to play to see if it does. When the 'D' flag is set in dhcp6c settings, when it gets to the d_printf() function where it sends the logs to syslog I could force a change to the level

Issued #17

from dhcp6c.

marjohn56 avatar marjohn56 commented on August 30, 2024

@fichtner I don't think debug was ever logged to system.log, I'm unsure we want that either, since services like devd can be very loud. At least we have a reason now, we could send debug output for selected services to system.log (I think we only need to add a line in the earlier mentioned log).

I forgot about the move to system.log, you're right, it should stay where it is now.

Did this ever get resolved? I have a feeling my second commit ( which strangely is there on my second even though it's a different PR ) is trying to fix the same thing. I'm going around in ever decreasing circles.

from dhcp6c.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.