6.0.0-alpha12
6/12/25

[#13112] syslog uses priority EMERG
Summary syslog uses priority EMERG
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester bastian-bugs.horde.org (at) t6l (dot) de
Created 04/14/2014 (4077 days ago)
Due
Updated 04/18/2014 (4073 days ago)
Assigned 04/16/2014 (4075 days ago)
Resolved 04/16/2014 (4075 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/18/2014 03:44:33 PM Michael Slusarz Comment #7 Reply to this comment
I strongly disagree. This could happen all the time with perfectly 
correct and common user behavior. Think of people bookmarking IMP 
instead of Horde, or accessing any other Horde resources (tickets, 
repositories, wiki pages) that require authentication.
I agree.  And none of these are being logged as EMERG.

What *is* being logged as EMERG is anything that causes a fatal error 
screen.  See Horde_ErrorHandler ('EMERG' logging happens after any 
authentication redirection occurs).

(Also, failure to save compiled CSS and JS files in the static 
directory will cause an EMERG log.  But that is also appropriate, 
since Horde web apps will be unusable without that data.)

04/17/2014 09:15:46 AM bastian-bugs (dot) horde (dot) org (at) t6l (dot) de Comment #6 Reply to this comment
But then again, I still cannot reproduce this.
How can I help to trace it down?

My first assumption is that this happens when one of the users 
accesses horde via webdav.
But everything seems to work fine, synchronization works in both ways.

I am also not sure, if he uses webdav or activesync and if I 
configured them properly.
04/17/2014 08:52:21 AM Jan Schneider Comment #5 Reply to this comment
The priority EMERG
intends to notify about an instable system on OS or kernel level,
afaik.
You are confusing various logging sub-systems.  In the *Horde* 
environment, these *are* EMERG issues, since they indicate events 
that should never, ever happen and require immediate action by the 
admin.
I strongly disagree. This could happen all the time with perfectly 
correct and common user behavior. Think of people bookmarking IMP 
instead of Horde, or accessing any other Horde resources (tickets, 
repositories, wiki pages) that require authentication. We already 
handle this gracefully by redirecting to the login screen and from 
there back to the originally requested screen. No reason to log at 
EMERG level there.
But then again, I still cannot reproduce this.
04/16/2014 08:59:13 PM Michael Slusarz Comment #4
State ⇒ Not A Bug
Reply to this comment
The priority EMERG intends to notify about an instable system on OS 
or kernel level, afaik.
You are confusing various logging sub-systems.  In the *Horde* 
environment, these *are* EMERG issues, since they indicate events that 
should never, ever happen and require immediate action by the admin.

For a Horde-specific logging backend (i.e. a horde-specifc log file) 
then EMERG is totally appropriate to describe the issue.

You instead chose a general-purpose system logging backend that treats 
an application EMERG the same as a kernel EMERG.  If that is not what 
you want, you should either configure syslog to log Horde actions at a 
different level or, instead, use a different log backend.
04/16/2014 02:25:17 PM bastian-bugs (dot) horde (dot) org (at) t6l (dot) de Comment #3 Reply to this comment
According to my local git repository which i also in use as the 
current webspace, I am on origin/master:

{{{
horde@myhost:~/local/src/horde.git/framework$ git branch -v
* master d143ae4 Use Horde_Date's timezone alias capabilites when 
importing events.

horde@myhost:~/local/src/horde.git/framework$ git log --graph -1 
--decorate d143ae4
* commit d143ae4842c7a24741a8f08bce57ca5e879957b2 (HEAD, 
origin/master, origin/HEAD, master)
| Author: Jan Schneider <jan@horde.org>
| Date:   Thu Apr 10 11:47:33 2014 +0200
|
|     Use Horde_Date's timezone alias capabilites when importing events.


horde@myhost:~/local/src/horde.git/framework$ git status .
# On branch master
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#       modified:   Log/lib/Horde/Log/Handler/Syslog.php
#
no changes added to commit (use "git add" and/or "git commit -a")
}}}

In irc ynuosh also stated that logging will be done via notice, but I 
still get these messages to the consoles:

{{{
Message from syslogd@myhost at Apr 16 15:09:32 ...
  HORDE: User is not authorized [pid 1477 on line 1502 of 
"/home/horde/local/src/horde.git/framework/Core/lib/Horde/Registry.php"]
}}}


Right now I circumvent these messages via:
{{{
horde@tweddell:~/local/src/horde.git/framework$ git diff 
Log/lib/Horde/Log/Handler/Syslog.php
diff --git a/framework/Log/lib/Horde/Log/Handler/Syslog.php 
b/framework/Log/lib/Horde/Log/Handler/Syslog.php
index 89d7150..2f2ff48 100644
--- a/framework/Log/lib/Horde/Log/Handler/Syslog.php
+++ b/framework/Log/lib/Horde/Log/Handler/Syslog.php
@@ -53,7 +53,7 @@ class Horde_Log_Handler_Syslog extends 
Horde_Log_Handler_Base
       * @var array
       */
      protected $_priorities = array(
-        Horde_Log::EMERG   => LOG_EMERG,
+        Horde_Log::EMERG   => LOG_ALERT,
          Horde_Log::ALERT   => LOG_ALERT,
          Horde_Log::CRIT    => LOG_CRIT,
          Horde_Log::ERR     => LOG_ERR,
}}}



If I am completely wrong by using git branches, commits, checkouts, 
please tell me.
04/16/2014 09:53:35 AM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
It's using the NOTICE level at least in Git master.
04/14/2014 08:20:08 AM bastian-bugs (dot) horde (dot) org (at) t6l (dot) de Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ syslog uses priority EMERG
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Using commit d143ae4842c7a24741a8f08bce57ca5e879957b2

If configured to use syslog, the Horde framework sends log messages 
with priority EMERG in certain cases.
I am pretty sure you don't want to do this. The priority EMERG intends 
to notify about an instable system on OS or kernel level, afaik. Given 
this, the default rsyslog configuration (from debian stable) sends 
EMERG message to all available consoles. That is very anoying to see 
messages like

{{{
HORDE: User is not authorized [pid 25210 on line 1502 of 
"/home/horde/local/src/horde.git/framework/Core/lib/Horde/Registry.php"]
}}}

popping up and destroying your console work.



Saved Queries