Skip to content

Commit

Permalink
fixes #20
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Sep 6, 2016
1 parent 68f6220 commit 387a329
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pvWebMonitor/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@


import datetime
import getpass
import hashlib
import logging
from lxml import etree
import os
import shutil
import socket
import sys
import traceback

Expand Down Expand Up @@ -60,9 +62,11 @@ def logMessage(message):
:param str message: words to be logged
'''
now = getTime()
user = getpass.getuser()
host = socket.gethostname()
name = os.path.basename(sys.argv[0])
pid = os.getpid()
text = "(%d,%s,%s) %s" % (pid, name, now, message)
text = "(%s@%s,%d,%s,%s) %s" % (user, host, pid, name, now, message)
logging.info(text)


Expand Down

0 comments on commit 387a329

Please sign in to comment.