diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2018-01-26 11:39:27 +0100 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-01-27 10:50:52 +0000 |
commit | 568cc60b7097299cacb4341a4a70d8ef270f51b4 (patch) | |
tree | 32c33be07b8c836d779ea0efdcae9b47836f5abe /src/vpp-api/java/jvpp/gen/jvppgen/types_gen.py | |
parent | 2f8d8fa50175bf775f66ff15aff2cf08138ccfbd (diff) |
jvpp: use Python's logging API
Change-Id: Iec437e4672af1f0d1a24458afb977ba6fbeba4ed
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'src/vpp-api/java/jvpp/gen/jvppgen/types_gen.py')
-rw-r--r-- | src/vpp-api/java/jvpp/gen/jvppgen/types_gen.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/vpp-api/java/jvpp/gen/jvppgen/types_gen.py b/src/vpp-api/java/jvpp/gen/jvppgen/types_gen.py index 858ea8baae7..c655933ddea 100644 --- a/src/vpp-api/java/jvpp/gen/jvppgen/types_gen.py +++ b/src/vpp-api/java/jvpp/gen/jvppgen/types_gen.py @@ -142,17 +142,16 @@ def generate_type_setter(handler_name, type_def, c_name_prefix, object_name, ind return indent + type_initialization.replace('\n', '\n' + indent) -def generate_types(types_list, plugin_package, types_package, inputfile): +def generate_types(types_list, plugin_package, types_package, inputfile, logger): """ Generates Java representation of custom types defined in api file. """ - # if not types_list: - print "Skipping custom types generation (%s does not define custom types)." % inputfile + logger.debug("Skipping custom types generation (%s does not define custom types)." % inputfile) return - print "Generating custom types" + logger.debug("Generating custom types for %s" % inputfile) if not os.path.exists(types_package): os.mkdir(types_package) |