Re: [systemd-devel] [PATCH 1/2] Report about syntax error in extended format

2013-04-17 Thread Oleksii Shevchuk
Zbigniew Jędrzejewski-Szmek writes: > I have now pushed a change that adds UNIT= or USER_UNIT= to most > syntax error messages. This patch mostly follows Oleksii's approach, > but extends it to all syntax parsing functions. > For the last time I tried to use next approach: I added reporting call

Re: [systemd-devel] [PATCH 1/2] Report about syntax error in extended format

2013-04-17 Thread Lennart Poettering
On Wed, 17.04.13 06:47, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > If we do this, I am not entirely sure about the name "issue" though. If > > we do this I'd like a good name that expresses that this requires > > resolving by the admin, and sufficiently makes clear that this is not

Re: [systemd-devel] [PATCH 1/2] Report about syntax error in extended format

2013-04-16 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Apr 05, 2013 at 08:51:39PM +0200, Lennart Poettering wrote: > On Tue, 02.04.13 07:33, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > > > +return log_struct(error ? LOG_ERR : LOG_WARNING, > > > + "MESSAGE=[%s:%d]: %s", file, line, buf, > > > +

Re: [systemd-devel] [PATCH 1/2] Report about syntax error in extended format

2013-04-05 Thread Lennart Poettering
On Tue, 02.04.13 07:33, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > +return log_struct(error ? LOG_ERR : LOG_WARNING, > > + "MESSAGE=[%s:%d]: %s", file, line, buf, > > + "MESSAGE_ID=%s\n", error ? CONF_PARSER_ERROR : > > CON

Re: [systemd-devel] [PATCH 1/2] Report about syntax error in extended format

2013-04-01 Thread Oleksii Shevchuk
> The working assumption in systemd is that the journal is available, > can can be used. So it storing messages in systemd (patch 2/2) goes against > current design. I thought about that, but that is not right I think. Journal is not the place to store the state. It can be rotated, It can be disab

Re: [systemd-devel] [PATCH 1/2] Report about syntax error in extended format

2013-04-01 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Apr 01, 2013 at 10:17:04AM +0300, Oleksii Shevchuk wrote: > --- > src/shared/conf-parser.c | 86 > ++-- > src/shared/conf-parser.h | 3 ++ > 2 files changed, 57 insertions(+), 32 deletions(-) > > diff --git a/src/shared/conf-parser.c b/src/sha

[systemd-devel] [PATCH 1/2] Report about syntax error in extended format

2013-04-01 Thread Oleksii Shevchuk
--- src/shared/conf-parser.c | 86 ++-- src/shared/conf-parser.h | 3 ++ 2 files changed, 57 insertions(+), 32 deletions(-) diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index c2cf5a6..60a6b35 100644 --- a/src/shared/conf-parser.c ++