Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Spurious logging messages with systemd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
IceFreak2000
n00b
n00b


Joined: 04 Jan 2005
Posts: 26

PostPosted: Tue Dec 03, 2013 11:02 am    Post subject: Spurious logging messages with systemd Reply with quote

Guys/Gals,

Forgive me if this is a very noobish question, but I'm getting a bit lost here. I've got a Virtualbox guest environment which was working fine, and following the news item about Gnome 3.8 stabilization I migrated to systemd.

Things seem to work OK, except that I'm getting very odd logging behaviour. If, for example, I mount my /boot partition I get the following:

Code:
localhost ~ # mount /boot
[ 1406.986157] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
[ 1407.008946] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)


Why are these messages being logged to the console?
_________________
"Life is like a sewer; what you get out of it depends on what you put into it" - Tom Lehrer
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1480

PostPosted: Tue Dec 03, 2013 1:42 pm    Post subject: Reply with quote

linux/.config:
CONFIG_DEFAULT_MESSAGE_LOGLEVEL=1
Back to top
View user's profile Send private message
IceFreak2000
n00b
n00b


Joined: 04 Jan 2005
Posts: 26

PostPosted: Tue Dec 03, 2013 2:05 pm    Post subject: Reply with quote

ulenrich wrote:
linux/.config:
CONFIG_DEFAULT_MESSAGE_LOGLEVEL=1


Thanks ulenrich,

Maybe I'm missing something; if I change
Code:
CONFIG_DEFAULT_MESSAGE_LOGLEVEL
from 4 to 1 that'll just reduce the amount of information being logged rather than solving the issue of the log information being immediately written to the console?

Cheers
_________________
"Life is like a sewer; what you get out of it depends on what you put into it" - Tom Lehrer
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1480

PostPosted: Tue Dec 03, 2013 2:53 pm    Post subject: Reply with quote

Well, that's another question :)

Perhaps your /boot was created with little options due to /etc/mke2fs.conf.
You can specify options in /etc/fstab following the /boot created conditions:
tune2fs -l /dev/sda1
Back to top
View user's profile Send private message
IceFreak2000
n00b
n00b


Joined: 04 Jan 2005
Posts: 26

PostPosted: Tue Dec 03, 2013 4:33 pm    Post subject: Reply with quote

ulenrich wrote:
Well, that's another question :)

Perhaps your /boot was created with little options due to /etc/mke2fs.conf.
You can specify options in /etc/fstab following the /boot created conditions:
tune2fs -l /dev/sda1


I think we're talking cross purposes; I'm getting a large number of messages written directly to tty0 when I'm working on that console. I was not getting this behaviour pre-systemd, and was simply using the example of mounting my boot partition which is one of many operations that cause this behaviour.
_________________
"Life is like a sewer; what you get out of it depends on what you put into it" - Tom Lehrer
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1480

PostPosted: Tue Dec 03, 2013 5:03 pm    Post subject: Reply with quote

Look at files shown when

grep -eDefaultStandard -eLog -eForward /etc/systemd/*.conf
Back to top
View user's profile Send private message
IceFreak2000
n00b
n00b


Joined: 04 Jan 2005
Posts: 26

PostPosted: Wed Dec 04, 2013 10:18 am    Post subject: Reply with quote

ulenrich wrote:
Look at files shown when

grep -eDefaultStandard -eLog -eForward /etc/systemd/*.conf


OK; that gives me:

Code:
/etc/systemd/journald.conf:#ForwardToSyslog=no
/etc/systemd/journald.conf:#ForwardToKMsg=no
/etc/systemd/journald.conf:#ForwardToConsole=no
/etc/systemd/logind.conf:[Login]
/etc/systemd/system.conf:#LogLevel=info
/etc/systemd/system.conf:#LogTarget=journal-or-kmsg
/etc/systemd/system.conf:#LogColor=yes
/etc/systemd/system.conf:#LogLocation=no
/etc/systemd/system.conf:#DefaultStandardOutput=journal
/etc/systemd/system.conf:#DefaultStandardError=inherit
/etc/systemd/user.conf:#LogLevel=info
/etc/systemd/user.conf:#LogTarget=console
/etc/systemd/user.conf:#LogColor=yes
/etc/systemd/user.conf:#LogLocation=no
/etc/systemd/user.conf:#DefaultStandardOutput=inherit
/etc/systemd/user.conf:#DefaultStandardError=inherit


As you'll see I've not touched any of the systemd settings.
_________________
"Life is like a sewer; what you get out of it depends on what you put into it" - Tom Lehrer
Back to top
View user's profile Send private message
IceFreak2000
n00b
n00b


Joined: 04 Jan 2005
Posts: 26

PostPosted: Wed Dec 04, 2013 10:32 am    Post subject: Reply with quote

If it helps make things clearer, I've captured a video of what's happening:

http://youtu.be/9pOLVKv1lIc
_________________
"Life is like a sewer; what you get out of it depends on what you put into it" - Tom Lehrer
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1480

PostPosted: Wed Dec 04, 2013 11:51 am    Post subject: Reply with quote

The comments show defaults, how about LogTarget=journal in both files?
Play with it, experiment! I don't think reasonable changes will harm:
man systemd-system.conf
man journald.conf
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum