diff options
author | Jan Klass <kissaki@posteo.de> | 2022-08-21 17:34:58 +0300 |
---|---|---|
committer | Jan Klass <kissaki@posteo.de> | 2022-08-21 17:34:58 +0300 |
commit | dcb4cf187ca14811885104e4b33717ec9dbf44c0 (patch) | |
tree | 5b345165729234cb5e4c2a4c565130285d22baab | |
parent | 5de03a63f9c91e0f1b88485604d3a30af7ee70af (diff) |
-rw-r--r-- | log-usertextmessage/log-usertextmessage.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/log-usertextmessage/log-usertextmessage.py b/log-usertextmessage/log-usertextmessage.py index eed6256..006ee5a 100644 --- a/log-usertextmessage/log-usertextmessage.py +++ b/log-usertextmessage/log-usertextmessage.py @@ -29,6 +29,18 @@ # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# This script connects to the Mumble server (all its contained running virtual servers) and logs user text messages to a log file.
+#
+# Opportunities for improvement:
+# 1. Handle ice secret:
+# Consider this required if you use the script with a remote rather than localhost connection.
+# Should be `communicator.getImplicitContext().put("secret", cfg.ice.secret)`.
+# 2. Support multiple vservers:
+# It would make sense to use one log file per server, or at least log the server ID too. Logged session IDs may not be unique/deterministic without it.
+# 3. Daemonize:
+# At the moment it uses `input()` to remain running until enter is pressed.
+# When running as a server service, daemonization may make more sense, or some other appropriate way to remain open; e.g. until term signal is received.
+
from datetime import datetime
import time
import logging
|