djeuscan: use debug to dump json on error

Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
This commit is contained in:
Corentin Chary 2012-07-24 08:03:42 +02:00
parent 5d39cbf2fd
commit 7e911bd9c6

View File

@ -31,8 +31,11 @@ class ScanUpstream(object):
ebuild = out[package]["metadata"]["ebuild"] ebuild = out[package]["metadata"]["ebuild"]
except KeyError: except KeyError:
self.logger.error( self.logger.error(
"Error while scanning upstream for package %s!\n%s", "Error while scanning upstream for package %s!",
package, package
)
self.logger.debug(
"Error %s",
out_json out_json
) )
return {} return {}