Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
S
scom
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
scom
Commits
037c047b
Kaydet (Commit)
037c047b
authored
Ock 23, 2009
tarafından
Bahadır Kandemir
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
log_debug() method for printing debug messages in COMAR scripts.
Requested by Fatih Aşıcı Usage: log_debug(message)
üst
ba8c51f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
csl.c
comar/src/csl.c
+22
-1
No files found.
comar/src/csl.c
Dosyayı görüntüle @
037c047b
...
@@ -228,7 +228,7 @@ static PyObject *
...
@@ -228,7 +228,7 @@ static PyObject *
c_model_apps
(
PyObject
*
self
,
PyObject
*
args
)
c_model_apps
(
PyObject
*
self
,
PyObject
*
args
)
{
{
/*!
/*!
* This method can be used in CSL scripts to r
aise exceptions
.
* This method can be used in CSL scripts to r
eturn applications provide that model
.
*/
*/
char
*
model
;
char
*
model
;
...
@@ -260,6 +260,26 @@ c_model_apps(PyObject *self, PyObject *args)
...
@@ -260,6 +260,26 @@ c_model_apps(PyObject *self, PyObject *args)
return
py_list
;
return
py_list
;
}
}
//! CSL method: log_debugmessage)
static
PyObject
*
c_log_debug
(
PyObject
*
self
,
PyObject
*
args
)
{
/*!
* This method can be used in CSL scripts to log debug messages.
*/
const
char
*
msg
;
if
(
!
PyArg_ParseTuple
(
args
,
"s"
,
&
msg
))
{
return
NULL
;
}
log_debug
(
LOG_PROC
,
"%s
\n
"
,
msg
);
Py_INCREF
(
Py_None
);
return
Py_None
;
}
//! CSL methods
//! CSL methods
static
PyMethodDef
methods
[]
=
{
static
PyMethodDef
methods
[]
=
{
{
"script"
,
c_script
,
METH_NOARGS
,
"Return package name"
},
{
"script"
,
c_script
,
METH_NOARGS
,
"Return package name"
},
...
@@ -268,6 +288,7 @@ static PyMethodDef methods[] = {
...
@@ -268,6 +288,7 @@ static PyMethodDef methods[] = {
{
"notify"
,
c_notify
,
METH_VARARGS
,
"Emits a signal"
},
{
"notify"
,
c_notify
,
METH_VARARGS
,
"Emits a signal"
},
{
"fail"
,
c_fail
,
METH_VARARGS
,
"Abort script"
},
{
"fail"
,
c_fail
,
METH_VARARGS
,
"Abort script"
},
{
"model_apps"
,
c_model_apps
,
METH_VARARGS
,
"List applications registered to model"
},
{
"model_apps"
,
c_model_apps
,
METH_VARARGS
,
"List applications registered to model"
},
{
"log_debug"
,
c_log_debug
,
METH_VARARGS
,
"Logs a debug message"
},
{
NULL
,
NULL
,
0
,
NULL
}
{
NULL
,
NULL
,
0
,
NULL
}
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment