Giter Club home page Giter Club logo

Comments (9)

marcusreid avatar marcusreid commented on July 21, 2024 6

The complete lack of any logging in znc is pretty unusual. For example, if you clobber the perms on your ssl cert so that znc can't read it, it just sits there with its eyes crossed and there's no indication of what's wrong.

from znc.

psychon avatar psychon commented on July 21, 2024

Uhm, which errors are logged to *status?
AFAIK only failed rehashes are and logging just those to syslog feels wrong.

Which other error messages do you have in mind?

from znc.

notmyname avatar notmyname commented on July 21, 2024

If I edit znc.conf and then "/znc rehash", I get messages if the rehashing did not succeed. However, if I "kill -HUP ", I am not given any messages if the rehashing failed. I would like to be able to look in a log file (syslog or otherwise) on the machine to diagnose errors.

from znc.

psychon avatar psychon commented on July 21, 2024

So only rehash errors should go to syslog, no other kind of error? Why would anyone check the syslog for failed rehashes then?

from znc.

notmyname avatar notmyname commented on July 21, 2024

Honestly, I've used znc for quite a while and have only had errors that were my fault (bad configs, etc). It's quite reliable, so I don't even really know what errors could happen.

The kind of errors I'm talking about are the ones that prevent ZNC from running. Of course, I've seen transient IRC connectivity issues. I agree that those may not need to be in a syslog entry (although I don't think that's a problem if they are there).

My situation is that I (and my coworkers) maintain an instance of znc on an internal machine for users that aren't familiar with IRC. Generally, those of us that are familiar use screen+irssi or our own instance of ZNC on our own machine. When users are added or removed from the znc config, the processed is HUP'd, and we have to simple wait and see if the changes took. There is no feedback. Server locations or ports may have been entered incorrectly. Closing tags may be missing. The only way to know if there is an error is to wait and see what happens. And "wait-and-see" only works if the recent change involved something that can be seen. If it were something like buffer size changes, I would have to assume the changes took since there is no way for me to see any logs. In my opinion, a known, standard place like syslog (or something else in /var/log) would let me check for errors easily and monitor with alerts if something needs attention.

from znc.

psychon avatar psychon commented on July 21, 2024

So in other words, you already figured out yourself that it's a bad idea to edit the config by hand. However, you didn't yet figure out that it's better to edit the config via webadmin.

from znc.

DarthGandalf avatar DarthGandalf commented on July 21, 2024

Something like http://logging.apache.org/log4cxx/ may be used, and it supports more than just syslog... Though perhaps we'll need a license change for that (e.g. #218)

from znc.

kspviswa avatar kspviswa commented on July 21, 2024

Is this bug still open ?

from znc.

dgw avatar dgw commented on July 21, 2024

Screenshot showing this issue is, in fact, open

from znc.

Related Issues (20)

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.