Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.

Commit d394519

Browse files
committed
Fix bug on LogFile description, add LogFile test
1 parent c685ff8 commit d394519

File tree

2 files changed

+132
-2
lines changed

2 files changed

+132
-2
lines changed

panic/panic.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@
145145
ALARM_LOGS = {
146146
'LogFile':
147147
[PyTango.DevString,
148-
"File where alarms are logged, like /tmp/alarm_$NAME.log\n
148+
"""File where alarms are logged, like /tmp/alarm_$NAME.log\n
149149
Keywords are $DEVICE,$ALARM,$NAME,$DATE\n
150150
From version 6.0 a FolderDS-like device can be used for remote logging:\n
151-
\ttango://test/folder/01/$ALARM_$DATE.log",
151+
\ttango://test/folder/01/$ALARM_$DATE.log""",
152152
[ "" ] ],
153153
'HtmlFolder':
154154
[PyTango.DevString,

panic/test/test_logfile.jive

+130
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
#
2+
# Resource backup , created Tue Oct 18 17:41:31 CEST 2016
3+
#
4+
5+
#---------------------------------------------------------
6+
# SERVER PyAlarm/test, DDebug device declaration
7+
#---------------------------------------------------------
8+
9+
PyAlarm/test/DEVICE/DDebug: "sys/DDebug/PyAlarm_Test"
10+
11+
12+
#---------------------------------------------------------
13+
# CLASS DDebug properties
14+
#---------------------------------------------------------
15+
16+
17+
#---------------------------------------------------------
18+
# SERVER PyAlarm/test, PyAlarm device declaration
19+
#---------------------------------------------------------
20+
21+
PyAlarm/test/DEVICE/PyAlarm: "test/alarms/alarms-sim",\
22+
"test/pyalarm/logfile"
23+
24+
25+
# --- test/alarms/alarms-sim properties
26+
27+
test/alarms/alarms-sim->AlertOnRecovery: True
28+
test/alarms/alarms-sim->AutoReset: 60
29+
test/alarms/alarms-sim->CreateNewContexts: True
30+
test/alarms/alarms-sim->PollingPeriod: 5
31+
test/alarms/alarms-sim->__SubDevices: "sys/database/2",\
32+
"archiving/snapmanager/1",\
33+
"archiving/snaparchiver/1",\
34+
"archiving/snapextractor/1"
35+
36+
# --- test/pyalarm/logfile properties
37+
38+
test/pyalarm/logfile->AlarmList: TEST:True
39+
test/pyalarm/logfile->AlarmReceivers: [email protected]
40+
test/pyalarm/logfile->AlarmThreshold: 3
41+
test/pyalarm/logfile->Enabled: 5
42+
test/pyalarm/logfile->LogFile: "tango://controls02:10000/test/folder/tmp-folderds/$ALARM_$DATE.log"
43+
test/pyalarm/logfile->PollingPeriod: 3
44+
test/pyalarm/logfile->StartupDelay: 5
45+
46+
#---------------------------------------------------------
47+
# CLASS PyAlarm properties
48+
#---------------------------------------------------------
49+
50+
CLASS/PyAlarm->PanicAdminUsers: ""
51+
CLASS/PyAlarm->Phonebook: #CONTROLS,\
52+
"%FLOOR:[email protected],SMS:+34608018721",\
53+
"",\
54+
"%CTRLMV:[email protected],SMS:+34669264304",\
55+
"%CTRL2:[email protected],SMS:+34638420276",\
56+
"%CONTROL:[email protected],SMS:+34669264304",\
57+
%CTRLEPS:SMS:+34638420276,\
58+
"%ANTONIO:[email protected],SMS:+34680885870",\
59+
"%SRUBIO:[email protected],SMS:+34606330920",\
60+
"%LOTHAR:[email protected],SMS:+34606864961",\
61+
"%LKRAUSE:[email protected],SMS:+34606864961",\
62+
"%MAREK:[email protected],SMS:+34693358058",\
63+
"%FULVIO:[email protected],SMS:+34649283471",\
64+
"%ZBIGNIEW:[email protected],SMS:+34638404618",\
65+
"%DFERNANDEZ:[email protected],SMS:+34647649053",\
66+
%SBLANCH:[email protected],\
67+
%JVILLANUEVA:[email protected],\
68+
%MANOLO:[email protected],\
69+
%TEST:%TEST2,\
70+
%TEST1:SMS:+34606330920,\
71+
72+
"",\
73+
"%SENDMAIL:ACTION(alarm:command,lab/ct/alarms/SendMail,$DESCRIPTION,$ALARM,[email protected])",\
74+
"",\
75+
#VACUUM,\
76+
"%VACUUM:[email protected],SMS:+34669267453,SMS:+34646260812",\
77+
"%VACMV:[email protected],SMS:+34669267453,SMS:+34646260812",\
78+
"%LLUIS:[email protected],SMS:+34657045092",\
79+
"%LGINES:[email protected],SMS:+34648465913",\
80+
"%NOESHRAQ:[email protected],SMS:+34699282557",\
81+
82+
"%MAREK:[email protected],SMS:+34693358058",\
83+
"%JNAVARRO:[email protected],SMS:+34670247608",\
84+
"%AURELIEN:[email protected],SMS:+33623872876",\
85+
"",\
86+
#FRONTENDS:,\
87+
"%JMARCOS:[email protected],SMS:+34670825949",\
88+
"%JOEL:[email protected],SMS:+34651436676",\
89+
"",\
90+
#BEAMLINES:,\
91+
%ABARLA:[email protected],\
92+
"%MVALVIDARES:[email protected],SMS:+34663695459",\
93+
"%IGOR:[email protected],SMS:+34653579972",\
94+
"%AGNETA:[email protected],SMS:+34654605721",\
95+
"%KLEMENTIEV:[email protected],SMS:+34634852597",\
96+
"%LUCIA:[email protected],SMS:+34617564624",\
97+
"%ERIC:[email protected],SMS:+34637029542",\
98+
"%MVLUCIA:[email protected],SMS:+34617564624",\
99+
"%JUANHUIX:[email protected],SMS:+34655123696",\
100+
"%JBENACH:[email protected],SMS:+34608107080",\
101+
"%SILVIA:[email protected],SMS:+34659311242",\
102+
"%GEMMA:[email protected],SMS:+34646662234",\
103+
"%MARIA:[email protected] ,SMS:+34600736091",\
104+
"%EVA:[email protected],SMS:+34630115585",\
105+
"%VIRGINIA:[email protected],SMS:+34689452160",\
106+
"%INMA:[email protected],SMS:+34678021620",\
107+
"%MICHAEL:[email protected],SMS:+34672065901",\
108+
"%NICO:[email protected],SMS:+34669012168",\
109+
%FRANCOIS:[email protected],\
110+
"%MARION:[email protected],SMS:+34652583204",\
111+
"",\
112+
"# On Call",\
113+
"%OC_VC:[email protected],SMS:+34651436676,[email protected],SMS:+34670247608",\
114+
"%OC_CT:[email protected],SMS:+34606330920",\
115+
"",\
116+
"# RF",\
117+
"%BEA:[email protected],SMS:+34608595343",\
118+
"%ANGELA:[email protected],SMS:+34620076431",\
119+
"%JESUS:[email protected],SMS:+34696037994",\
120+
"%CONTROLROOM:,SMS:+34646291497",\
121+
"%DCALDERON:659850116,SMS:659850116"
122+
CLASS/PyAlarm->SMSConfig: controls@cells:cells.cells
123+
124+
125+
# --- dserver/PyAlarm/test properties
126+
127+
dserver/PyAlarm/test->__SubDevices: "dserver/snapextractor/1",\
128+
"dserver/snapmanager/1",\
129+
"dserver/snaparchiver/1",\
130+
"test/sim/test-00"

0 commit comments

Comments
 (0)