mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-11 06:31:09 +02:00
Only log error if code is >= 400
This commit is contained in:
parent
5cfb6441c6
commit
3e56afec0c
@ -447,8 +447,10 @@ void Xport::XmlExit(const QString &str,int code,const QString &srcfile,
|
|||||||
if(xport_post!=NULL) {
|
if(xport_post!=NULL) {
|
||||||
delete xport_post;
|
delete xport_post;
|
||||||
}
|
}
|
||||||
|
if(code>=400) {
|
||||||
rda->log(RDConfig::LogErr,QString().sprintf("%s '%s' %s",(const char *)str,(const char *)srcfile,
|
rda->log(RDConfig::LogErr,QString().sprintf("%s '%s' %s",(const char *)str,(const char *)srcfile,
|
||||||
(srcline>0)?(const char *)QString().sprintf("line %d",srcline):""));
|
(srcline>0)?(const char *)QString().sprintf("line %d",srcline):""));
|
||||||
|
}
|
||||||
#ifdef RDXPORT_DEBUG
|
#ifdef RDXPORT_DEBUG
|
||||||
if(srcline>0) {
|
if(srcline>0) {
|
||||||
RDXMLResult(str+" \""+srcfile+"\" "+QString().sprintf("line %d",srcline),
|
RDXMLResult(str+" \""+srcfile+"\" "+QString().sprintf("line %d",srcline),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user