Make StringIO#warn public and track any exceptions in the test.
Make StringIO#warn public and track any exceptions in the test.

Add a missing test when the test raises an exception.
We should now see the database exception message if the test raises.

Fixes #2104
`Failure/Error: MiqDbConfig.log_activity_statistics(buffer) NoMethodError: private method warn' called for # #`

skateman/manageiq,tzumainn/manageiq,branic/manageiq,billfitzgerald0120/manageiq,romanblanco/manageiq,gmcculloug/manageiq,skateman/manageiq,ailisp/manageiq,josejulio/manageiq,KevinLoiseau/manageiq,josejulio/manageiq,syncrou/manageiq,jntullo/manageiq,mkanoor/manageiq,tzumainn/manageiq,gerikis/manageiq,NickLaMuro/manageiq,borod108/manageiq,gerikis/manageiq,ailisp/manageiq,tinaafitz/manageiq,romanblanco/manageiq,jrafanie/manageiq,hstastna/manageiq,jrafanie/manageiq,mresti/manageiq,israel-hdez/manageiq,jameswnl/manageiq,NaNi-Z/manageiq,maas-ufcg/manageiq,djberg96/manageiq,yaacov/manageiq,mfeifer/manageiq,ManageIQ/manageiq,billfitzgerald0120/manageiq,gmcculloug/manageiq,mfeifer/manageiq,lpichler/manageiq,branic/manageiq,billfitzgerald0120/manageiq,skateman/manageiq,NickLaMuro/manageiq,yaacov/manageiq,andyvesel/manageiq,romanblanco/manageiq,jntullo/manageiq,romaintb/manageiq,fbladilo/manageiq,agrare/manageiq,pkomanek/manageiq,d-m-u/manageiq,romaintb/manageiq,hstastna/manageiq,NickLaMuro/manageiq,jntullo/manageiq,juliancheal/manageiq,israel-hdez/manageiq,fbladilo/manageiq,mresti/manageiq,agrare/manageiq,branic/manageiq,kbrock/manageiq,mzazrivec/manageiq,ilackarms/manageiq,maas-ufcg/manageiq,syncrou/manageiq,matobet/manageiq,romanblanco/manageiq,israel-hdez/manageiq,andyvesel/manageiq,borod108/manageiq,mresti/manageiq,matobet/manageiq,jntullo/manageiq,josejulio/manageiq,ilackarms/manageiq,fbladilo/manageiq,andyvesel/manageiq,fbladilo/manageiq,jrafanie/manageiq,lpichler/manageiq,mkanoor/manageiq,djberg96/manageiq,kbrock/manageiq,jrafanie/manageiq,kbrock/manageiq,jvlcek/manageiq,romaintb/manageiq,ailisp/manageiq,aufi/manageiq,jameswnl/manageiq,borod108/manageiq,durandom/manageiq,durandom/manageiq,israel-hdez/manageiq,KevinLoiseau/manageiq,d-m-u/manageiq,juliancheal/manageiq,syncrou/manageiq,gmcculloug/manageiq,ilackarms/manageiq,juliancheal/manageiq,syncrou/manageiq,tzumainn/manageiq,NaNi-Z/manageiq,agrare/manageiq,pkomanek/manageiq,josejulio/manageiq,mfeifer/manageiq,hstastna/manageiq,skateman/manageiq,jvlcek/manageiq,matobet/manageiq,lpichler/manageiq,romaintb/manageiq,tzumainn/manageiq,NaNi-Z/manageiq,ilackarms/manageiq,billfitzgerald0120/manageiq,matobet/manageiq,mzazrivec/manageiq,NaNi-Z/manageiq,branic/manageiq,mfeifer/manageiq,maas-ufcg/manageiq,gerikis/manageiq,d-m-u/manageiq,NickLaMuro/manageiq,chessbyte/manageiq,tinaafitz/manageiq,mkanoor/manageiq,djberg96/manageiq,lpichler/manageiq,hstastna/manageiq,borod108/manageiq,gmcculloug/manageiq,agrare/manageiq,jvlcek/manageiq,jameswnl/manageiq,chessbyte/manageiq,mkanoor/manageiq,chessbyte/manageiq,aufi/manageiq,tinaafitz/manageiq,aufi/manageiq,KevinLoiseau/manageiq,maas-ufcg/manageiq,gerikis/manageiq,jameswnl/manageiq,KevinLoiseau/manageiq,juliancheal/manageiq,ManageIQ/manageiq,ManageIQ/manageiq,romaintb/manageiq,ailisp/manageiq,durandom/manageiq,jvlcek/manageiq,mzazrivec/manageiq,yaacov/manageiq,durandom/manageiq,chessbyte/manageiq,d-m-u/manageiq,pkomanek/manageiq,maas-ufcg/manageiq,maas-ufcg/manageiq,KevinLoiseau/manageiq,romaintb/manageiq,aufi/manageiq,mzazrivec/manageiq,tinaafitz/manageiq,kbrock/manageiq,djberg96/manageiq,mresti/manageiq,ManageIQ/manageiq,yaacov/manageiq,pkomanek/manageiq,andyvesel/manageiq,KevinLoiseau/manageiq