Update non-templated drivers to log to ../log/ instead of /tmp/
This commit is contained in:
@@ -8,7 +8,7 @@ namespace eval ::scobj::ls460 {
|
||||
# /envcont/setpoint
|
||||
# /envcont/sensor/value
|
||||
proc debug_log {args} {
|
||||
set fd [open "/tmp/ls460.log" a]
|
||||
set fd [open "../log/ls460.log" a]
|
||||
puts $fd "[clock format [clock seconds] -format "%T"] $args"
|
||||
close $fd
|
||||
}
|
||||
@@ -453,7 +453,7 @@ debug_log "Registering node $nodeName for write callback"
|
||||
# @param port, the IP protocol port number of the device
|
||||
# @param _tol (optional), this is the initial tolerance setting
|
||||
proc add_ls460 {name IP port terminator {_tol 5.0}} {
|
||||
set fd [open "/tmp/ls460.log" a]
|
||||
set fd [open "../log/ls460.log" a]
|
||||
if {[SplitReply [environment_simulation]]=="false"} {
|
||||
puts $fd "makesctcontroller sct_ls460 std ${IP}:$port"
|
||||
makesctcontroller sct_ls460 std ${IP}:$port $terminator
|
||||
@@ -466,7 +466,7 @@ proc add_ls460 {name IP port terminator {_tol 5.0}} {
|
||||
}
|
||||
|
||||
puts stdout "file evaluation of sct_lakeshore_ls460.tcl"
|
||||
set fd [open "/tmp/ls460.log" w]
|
||||
set fd [open "../log/ls460.log" w]
|
||||
puts $fd "file evaluation of sct_lakeshore_ls460.tcl"
|
||||
close $fd
|
||||
|
||||
|
||||
Reference in New Issue
Block a user