diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-07-24 01:08:23 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-07-24 01:08:23 (GMT) |
commit | b94feddead6ebb906b17a797477f2d0ff989832e (patch) | |
tree | 7da558d83bbc64b3f27a4b8b4caefc4aff2d0bd8 /src/rhimportd/ctrlTelnet.go | |
parent | 38cde493d2a9a1961e057fe0e175b437b3916148 (diff) |
client/session specific log prefixes
Diffstat (limited to 'src/rhimportd/ctrlTelnet.go')
-rw-r--r-- | src/rhimportd/ctrlTelnet.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rhimportd/ctrlTelnet.go b/src/rhimportd/ctrlTelnet.go index c624654..b6093c9 100644 --- a/src/rhimportd/ctrlTelnet.go +++ b/src/rhimportd/ctrlTelnet.go @@ -182,7 +182,8 @@ func telnetSet(c *telgo.Client, args []string, conf *rhimport.Config, db *rddb.D var ctx *rhimport.Context if c.UserData == nil { - c.UserData = rhimport.NewContext(conf, db, rhl, rhdl) + logname := "telnet-" + c.Conn.RemoteAddr().String() + c.UserData = rhimport.NewContext(conf, db, getStdLog(logname+"-std"), getDbgLog(logname+"-dbg")) ctx = c.UserData.(*rhimport.Context) ctx.Trusted = false } else { |