Update non-templated drivers to log to ../log/ instead of /tmp/
This commit is contained in:
@@ -8,7 +8,7 @@ namespace eval ::scobj::watlow_st {
|
||||
# /tempcont/setpoint
|
||||
# /tempcont/sensor/value
|
||||
proc debug_log {args} {
|
||||
set fd [open "/tmp/watlow_st.log" a]
|
||||
set fd [open "../log/watlow_st.log" a]
|
||||
puts $fd "[clock format [clock seconds] -format "%T"] $args"
|
||||
close $fd
|
||||
}
|
||||
@@ -764,7 +764,7 @@ proc createNode {scobj_hpath sct_controller cmdGroup varName readable writable\
|
||||
# @param port, the IP protocol port number of the device (502 for modbus)
|
||||
# @param _tol (optional), this is the initial tolerance setting
|
||||
proc add_watlow_st {name IP port dev_id {_tol 5.0} {CID 1} {CTYPE T}} {
|
||||
set fd [open "/tmp/watlow_st.log" a]
|
||||
set fd [open "../log/watlow_st.log" a]
|
||||
if {[SplitReply [environment_simulation]]=="false"} {
|
||||
puts $fd "makesctcontroller sct_${name} modbus ${IP}:$port"
|
||||
makesctcontroller sct_${name} modbus ${IP}:$port
|
||||
@@ -777,7 +777,7 @@ proc add_watlow_st {name IP port dev_id {_tol 5.0} {CID 1} {CTYPE T}} {
|
||||
}
|
||||
|
||||
puts stdout "file evaluation of sct_watlow_st4.tcl"
|
||||
set fd [open "/tmp/watlow_st.log" w]
|
||||
set fd [open "../log/watlow_st.log" w]
|
||||
puts $fd "file evaluation of sct_watlow_st4.tcl"
|
||||
close $fd
|
||||
|
||||
|
||||
Reference in New Issue
Block a user