]> git.somenet.org - pub/jan/aic18.git/blob - service-failover/tsprint.py
Change port in Dockerfile EXPOSE too
[pub/jan/aic18.git] / service-failover / tsprint.py
1 #!/usr/bin/env python3
2
3 # make print threadsafe.
4
5 from threading import Lock
6
7 printlock = Lock()
8 oldprint = print
9
10 def print(*a, **b):
11         with printlock:
12                 oldprint(*a, **b)