File: callback2.py

package info (click to toggle)
patroni 4.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,704 kB
  • sloc: python: 29,743; sh: 573; makefile: 29
file content (6 lines) | stat: -rwxr-xr-x 148 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
#!/usr/bin/env python

import sys

with open("data/{0}/{0}_cb.log".format(sys.argv[1]), "a+") as log:
    log.write(" ".join(sys.argv[-3:]) + "\n")