Commit 3abe9367 authored by Lorn Potter's avatar Lorn Potter

[connectionagent] add tracing package like connman's

So it is easier to start debug output
parent d93f471e
......@@ -4,7 +4,8 @@ Requires=dbus.service
After=pre-user-session.target
[Service]
ExecStart=/usr/bin/connectionagent
EnvironmentFile=-/etc/tracing/connectionagent/connectionagent.tracing
ExecStart=/usr/bin/connectionagent $TRACING
Type=dbus
BusName=com.jolla.Connectiond
Restart=always
......
......@@ -787,6 +787,8 @@ void QConnectionManager::techChanged()
void QConnectionManager::browserRequest(const QString &servicePath, const QString &url)
{
Q_UNUSED(servicePath)
qDebug() << servicePath;
qDebug() << url;
Q_EMIT requestBrowser(url);
}
......
......@@ -14,6 +14,7 @@ equals(QT_MAJOR_VERSION, 5): {
SUBDIRS += connd
OTHER_FILES += rpm/connectionagent-qt5.spec \
rpm/connectionagent-qt5.yaml
rpm/connectionagent-qt5.yaml \
rpm/connectionagent.tracing
}
......@@ -15,6 +15,7 @@ Group: Communications/Connectivity Adaptation
License: LGPLv2
URL: http://github.com/lpotter/connectionagent
Source0: %{name}-%{version}.tar.bz2
Source1: connectionagent.tracing
Source100: connectionagent-qt5.yaml
Requires: connman-qt5-declarative
Requires: systemd
......@@ -52,6 +53,15 @@ Requires: %{name} = %{version}
%description test
This package contains the auto tests for connection agent.
%package tracing
Summary: Configuration for Connectionagent to enable tracing
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
%description tracing
Will enable tracing for Connectionagent
%prep
%setup -q -n %{name}-%{version}
......@@ -75,6 +85,10 @@ rm -rf %{buildroot}
# << install pre
%qmake5_install
%make_install
mkdir -p %{buildroot}%{_sysconfdir}/tracing/connectionagent/
cp -a %{SOURCE1} %{buildroot}%{_sysconfdir}/tracing/connectionagent/
# >> install post
mkdir -p %{buildroot}%{_libdir}/systemd/user/user-session.target.wants
ln -s ../connectionagent.service %{buildroot}%{_libdir}/systemd/user/user-session.target.wants/
......@@ -117,3 +131,10 @@ fi
%{_prefix}/opt/tests/libqofono/*
# >> files test
# << files test
%files tracing
%defattr(-,root,root,-)
%config %{_sysconfdir}/tracing/connectionagent
# >> files tracing
# << files tracing
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment