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
e1b0e497
Kaydet (Commit)
e1b0e497
authored
Kas 12, 2008
tarafından
Bahadır Kandemir
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Print traceback to error log
üst
52c727a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
ChangeLog
comar/ChangeLog
+4
-0
dbus.c
comar/src/dbus.c
+11
-0
No files found.
comar/ChangeLog
Dosyayı görüntüle @
e1b0e497
2008-11-12 Bahadır Kandemir <bahadir@pardus.org.tr>
* comar: Print Python traceback to logfile.
2008-11-02 Bahadır Kandemir <bahadir@pardus.org.tr>
* comar: PolicyKit exceptions now return related action id.
comar/src/dbus.c
Dosyayı görüntüle @
e1b0e497
...
...
@@ -116,6 +116,16 @@ log_exception()
log_error
(
"Python Exception [%s] in (%s,%s,%ld): %s
\n
"
,
eStr
,
dbus_message_get_interface
(
my_proc
.
bus_msg
),
dbus_message_get_path
(
my_proc
.
bus_msg
),
lineno
,
vStr
);
PyObject
*
pFrame
,
*
pCode
;
while
(
pTrace
!=
NULL
&&
pTrace
!=
Py_None
)
{
pFrame
=
PyObject_GetAttrString
(
pTrace
,
"tb_frame"
);
pCode
=
PyObject_GetAttrString
(
pFrame
,
"f_code"
);
log_error
(
" File %s, line %d, in %s()
\n
"
,
PyString_AsString
(
PyObject_GetAttrString
(
pCode
,
"co_filename"
)),
(
int
)
PyInt_AsLong
(
PyObject_GetAttrString
(
pTrace
,
"tb_lineno"
)),
PyString_AsString
(
PyObject_GetAttrString
(
pCode
,
"co_name"
)));
pTrace
=
PyObject_GetAttrString
(
pTrace
,
"tb_next"
);
}
dbus_reply_error
(
"python"
,
eStr
,
vStr
);
}
...
...
@@ -590,6 +600,7 @@ dbus_policy_check(const char *sender, const char *interface, const char *method)
PolKitResult
polkit_result
;
char
*
action
=
policy_action
(
interface
,
method
);
printf
(
"action: %s
\n
"
,
action
);
if
(
policy_check
(
sender
,
action
,
&
polkit_result
))
{
log_debug
(
LOG_PLCY
,
"PolicyKit: %s.%s = %s
\n
"
,
interface
,
method
,
polkit_result_to_string_representation
(
polkit_result
));
...
...
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