From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from srv1.stroeder.com (srv1.stroeder.com [213.240.180.113]) by mail.toke.dk (Postfix) with ESMTPS id 172387C6E1B for ; Thu, 7 Jan 2021 23:45:54 +0100 (CET) Authentication-Results: mail.toke.dk; dkim=pass (1536-bit key) header.d=stroeder.com header.i=@stroeder.com header.b=dM/YErrw DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=stroeder.com; s=stroeder-com-20201114; t=1610059550; bh=jDIsStXHmIho400+e1vCfGcq2KzO3DzEZVeUBQiLiBI=; h=To:References:From:Subject:Date:In-Reply-To:From; b=dM/YErrwCRqy3NF2myNj26x47UDGP5GoshZGHl0J+1bKXp3jx2Gwk6Ts9je4DVkVt ZEDL8wFVU+/wEAfYZourTB+K7Mvn3ewRno6kPbUyhUrYaxIwy8Wz4zYlnluHC81MQ2 hlMMCj2ZJ+RCkx0T3YN25sZOzqI9LT6ABMU0Q/mdBI2SpiLnNctbCqgDWnWNGwJsOL OyGA7WpCMCjlc7MOUdtBf2qgiU4bmMZvi7ZOpr7+xKwUD/dl5eO2SamTsK9 To: Juliusz Chroboczek , galene@lists.galene.org References: <875z485swt.wl-jch@irif.fr> From: =?UTF-8?Q?Michael_Str=c3=b6der?= Message-ID: <40ad9a1d-c97c-5f01-368d-1ef1862c4d07@stroeder.com> Date: Thu, 7 Jan 2021 23:45:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <875z485swt.wl-jch@irif.fr> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Message-ID-Hash: EV3Q3MDJGSVSHTBI7OWFPENYDX5UJCLV X-Message-ID-Hash: EV3Q3MDJGSVSHTBI7OWFPENYDX5UJCLV X-MailFrom: michael@stroeder.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.3.2 Precedence: list Subject: [Galene] Re: Logging List-Id: =?utf-8?q?Gal=C3=A8ne_videoconferencing_server_discussion_list?= Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: On 1/7/21 10:38 PM, Juliusz Chroboczek wrote: > It turns out that Pion's logging is controlled by environment variables= . > This is described here: >=20 > https://github.com/pion/webrtc/wiki/Debugging-WebRTC Great! Not so great for you because I will probably ask more questions. ;-) > Gal=C3=A8ne could potentially: > - set the environment variables; > - hook into Pion's internals to redirect the log somewhere (to a web = page?). To me it seems the systemd unit can handle all this. See examples below. Ciao, Michael. ----- /etc/systemd/system/galene.service ----- [Unit] Description=3DGalene Videoconferencing Server Requires=3Dlocal-fs.target network.target After=3Dlocal-fs.target nss-lookup.target time-sync.target [Service] Type=3Dsimple EnvironmentFile=3D-/etc/sysconfig/galene ExecStart=3D/usr/sbin/galene $ARGS User=3Dgalene Group=3Dgalene Restart=3Don-failure LimitNOFILE=3D65536 # redirect stderr and stdout to log file StandardOutput=3Dappend:/var/log/galene/stdout.log StandardError=3Dappend:/var/log/galene/stderr.log [Install] WantedBy=3Dmulti-user.target ----- /etc/sysconfig/galene ----- # Configure command-line arguments for Gal=C3=A8ne video conference serve= r ARGS=3D"-http 0.0.0.0:8444 -data /etc/galene -groups /var/lib/galene/groups -static /usr/share/galene/static -recordings /var/lib/galene/recordings" # pion debug messages set by env vars #PION_LOG_TRACE=3D"all" #PION_LOG_DEBUG=3D"all" PIONS_LOG_INFO=3D"ice" PIONS_LOG_WARNING=3D"all"