netgroup-polito / frog4-openstack-do

FROG4 - OpenStack Domain Orchestrator submodule
1 stars 0 forks source link

debug mode #14

Closed ivanocerrato closed 7 years ago

ivanocerrato commented 7 years ago

Why do we have two "debug" fields in the configuration file ?

There exist any difference? Can we use some more meaningful name?

ReliableLion commented 7 years ago

The debug_mode enables debugging mode. The debug option specify the log level. I changed the second one, and updated the relative config.py, in a more meaningful name: debug_level

ivanocerrato commented 7 years ago

Now we have:

I would call this https://github.com/netgroup-polito/frog4-openstack-do/blob/master/config/default-config.ini#L28 "fake_running", while I would call the second "debug_mode".

ReliableLion commented 7 years ago

Yes it would be better, even if the second should specify the log level. Maybe a single option it's better: Now:

ivanocerrato commented 7 years ago

I don't understand your proposal

ivanocerrato commented 7 years ago

Yesterday we noted that this field https://github.com/netgroup-polito/frog4-openstack-do/blob/master/config/default-config.ini#L26-L28 does not have any effect when set to true. Then I propose to remove it from the configuration file, and then to delete its usage from the code.

@rbrtbnfgl or @ReliableLion , can one of you take care of this issue?

rbrtbnfgl commented 7 years ago

If it is enabled it increase the information stored on a file and will always returned true only when the graph status is requested.

ivanocerrato commented 7 years ago

Well, then please remove it. Imho it is completely useless.

ReliableLion commented 7 years ago

I used the field also to write the flows in a file for debugging. Beyond that, that field was used as Roberto said. So I could remove it.

ivanocerrato commented 7 years ago

If also @rbrtbnfgl agrees, you can remove that flag.

To me, the code to print flows on files in very useful. You can enable it in case this flag here https://github.com/netgroup-polito/frog4-openstack-do/blob/master/config/default-config.ini#L80 is verbose (i then agree with your previous suggestion).

ReliableLion commented 7 years ago

Ok, so I'll remove the debug_mode field and then leave only a "log_level". The latter if is set to verbose will print the flows in a file, is that right?

ivanocerrato commented 7 years ago

The latter will do what it is already doing now + it will print the flows in a file.

@rbrtbnfgl do you agree?

ivanocerrato commented 7 years ago

@ReliableLion please proceed. Roberto just told me that he agrees.

ReliableLion commented 7 years ago

Ok I deleted the debug_mode field and used the debug_level field to print the flows in a file.

ivanocerrato commented 7 years ago

Just a detail: can you replace debug_level with debug_mode?

ReliableLion commented 7 years ago

Yes Done.

ivanocerrato commented 7 years ago

Then I close the issue.