Ticket #798 (new enhancement)
print errors on the osynctool's STDERR instead of only showing them in the traces
| Reported by: | chi70 | Owned by: | dgollub |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | osynctool/msynctool | Version: | 0.38 |
| Severity: | normal | Keywords: | |
| Cc: | bricks |
Description (last modified by felixmoeller) (diff)
as seen in ticket #795 it is difficult for a user to understand whats going wrong as msynctool does not show any errors on the cli but only in the traces
Therefore I suggest to print these errors on the msynctool's STDERR instead of only showing them in the traces,
Change History
comment:3 follow-up: ↓ 4 Changed 5 years ago by dgollub
Initial implemention with r3533.
Unfortunatley it's only enabled when also OSYNCTRACE is enabled.... We should make OSYNC_PRINTERROR independent of OSYNC_TRACE.
But OpenSync? build without tracing support should also keep OSYNC_PRINTERROR disabled. Purpose of OSYNC_PRINTERROR is to find "dirty" error handling which have to be fixed...
comment:4 in reply to: ↑ 3 Changed 5 years ago by chi70
Replying to dgollub:
Initial implemention with r3533.
Unfortunatley it's only enabled when also OSYNCTRACE is enabled....
At least with OSYNC_TRACE set it looks really fine!
$msynctool --listplugins ERROR: Unable to open module /opt/opensync/build/lib/libopensync1/plugins/syncml-plugin.so: /opt/opensync/build/lib/libopensync1/plugins/syncml-plugin.so: undefined symbol: osync_objtype_sink_num_objformats EXIT_ERROR: osync_module_load: Unable to open module /opt/opensync/build/lib/libopensync1/plugins/syncml-plugin.so: /opt/opensync/build/lib/libopensync1/plugins/syncml-plugin.so: undefined symbol: osync_objtype_sink_num_objformats Available plugins: file-sync $ unset OSYNC_TRACE $ msynctool --listplugins Available plugins: file-sync
Thanks so far.
