Bug 13803 - wpa_supplicant does not write anything to log - /var/log/wpa_supplicant.log
Summary: wpa_supplicant does not write anything to log - /var/log/wpa_supplicant.log
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-25 16:54 CEST by Florian Hubold
Modified: 2014-08-24 17:59 CEST (History)
1 user (show)

See Also:
Source RPM: wpa_supplicant-2.0-2.mga4.src.rpm
CVE:
Status comment:


Attachments

Description Florian Hubold 2014-07-25 16:54:03 CEST
Description of problem:

If authentication fails due to wpa_supplicant.conf containing conflicting credentials/AP data, wpa_supplicant should write to the log file.

It is configured by default to write to /var/log/wpa_supplicant.log :

$ ps -ef | grep -v grep | grep -i wpa
root     18176     1  0 Jul18 ?        00:00:16 /usr/sbin/wpa_supplicant -u -f /var/log/wpa_supplicant.log -c /etc/wpa_supplicant.conf -P /run/wpa_supplicant.pid

log file is empty:

$ sudo wc -l /var/log/wpa_supplicant.log
0 /var/log/wpa_supplicant.log

timestamp has been updated at system bootup:

$ LC_ALL=C ls -al /var/log/wpa_supplicant.log
-rw------- 1 root root 0 Jul 20 04:02 /var/log/wpa_supplicant.log

Reproducible: 

Steps to Reproduce:
Comment 1 Florian Hubold 2014-08-24 17:59:22 CEST
Hmmm, according to https://forums.gentoo.org/viewtopic-t-930204-start-0.html and and http://wiki.gentoo.org/wiki/Wpa_supplicant#Enable_Logging and comparing the man page to --help output, seems this is only for debug output.

  -f = log output to debug file instead of stdout

From https://bugs.launchpad.net/ubuntu/+source/wpasupplicant/+bug/175970/comments/1 it seems to also log to syslog, to /var/log/wpa_supplicant:

[doktor5000@Mageia4 ~]$ ls -ltr /var/log/wpa_supplicant*
-rw------- 1 root root   5392 Aug  5 22:33 /var/log/wpa_supplicant.log.4.gz
-rw------- 1 root root   2379 Aug 12 07:56 /var/log/wpa_supplicant.log.3.gz
-rw------- 1 root root   1594 Aug 17 13:55 /var/log/wpa_supplicant.log.2.gz
-rw------- 1 root root      0 Aug 19 04:02 /var/log/wpa_supplicant.log
-rw------- 1 root root 248936 Aug 24 17:57 /var/log/wpa_supplicant.log.1

Status: NEW => RESOLVED
CC: (none) => doktor5000
Resolution: (none) => INVALID


Note You need to log in before you can comment on or make changes to this bug.