Bug 381818

Summary: OFX importer does not show libofx debug messages
Product: [Applications] kmymoney Reporter: Ralf Habacker <ralf.habacker>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 4.8.0   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed In: 4.8.1,5.0.0
Sentry Crash Report:
Bug Depends on:    
Bug Blocks: 323480, 381786    

Description Ralf Habacker 2017-06-30 09:17:30 UTC
While trying to reproduce bug 323480 it turned out that the ofx importer does not dump any libofx related messages which would be good to have in case there are import errors or warning etc.

How to reproduce:
1. start kmymoney from command line on linux to be able to see debug messages
2. import ofx file from bug 323480

What happens:
No libofx related message are displayed. libofx related message are in the following form: 
LibOFX INFO: libofx_proc_file(): File format not specified, autodetecting...

What is expected: 
There should be a way to enable libofx related debug messages


Additional informations:
libofx dump messages to stderr only if the global variables ofx_XXX_msg are set.
On normal processing at least the message level 'status', 'info', 'warnings'
and 'error' should be displayed. Developers should be able to setup additional
warning levels inside the code.
Comment 1 Ralf Habacker 2017-06-30 09:20:20 UTC
Git commit 3f1481db19ea60e5ff7cd9ede80f4343ac3c828c by Ralf Habacker.
Committed on 30/06/2017 at 09:20.
Pushed by habacker into branch '4.8'.

Fix 'OFX importer does not show libofx debug messages'
FIXED-IN:4.8.1

M  +17   -0    kmymoney/plugins/ofximport/ofximporterplugin.cpp

https://commits.kde.org/kmymoney/3f1481db19ea60e5ff7cd9ede80f4343ac3c828c