forked from loafle/openapi-generator-original
use logger.info to display command line result
This commit is contained in:
parent
16f9c8f7dd
commit
f8b82e14fe
@ -16,7 +16,7 @@ public class ConfigParser {
|
|||||||
|
|
||||||
public static Config read(String location) {
|
public static Config read(String location) {
|
||||||
|
|
||||||
LOGGER.debug("reading config from " + location);
|
LOGGER.info("reading config from " + location);
|
||||||
|
|
||||||
ObjectMapper mapper = new ObjectMapper();
|
ObjectMapper mapper = new ObjectMapper();
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ public abstract class AbstractGenerator {
|
|||||||
|
|
||||||
@SuppressWarnings("static-method")
|
@SuppressWarnings("static-method")
|
||||||
public File writeToFile(String filename, String contents) throws IOException {
|
public File writeToFile(String filename, String contents) throws IOException {
|
||||||
LOGGER.debug("writing file " + filename);
|
LOGGER.info("writing file " + filename);
|
||||||
File output = new File(filename);
|
File output = new File(filename);
|
||||||
|
|
||||||
if (output.getParent() != null && !new File(output.getParent()).exists()) {
|
if (output.getParent() != null && !new File(output.getParent()).exists()) {
|
||||||
|
@ -153,7 +153,7 @@ class ObjectSerializer
|
|||||||
*/
|
*/
|
||||||
public function toFormValue($value)
|
public function toFormValue($value)
|
||||||
{
|
{
|
||||||
if ($value instanceof SplFileObject) {
|
if ($value instanceof \SplFileObject) {
|
||||||
return $value->getRealPath();
|
return $value->getRealPath();
|
||||||
} else {
|
} else {
|
||||||
return $this->toString($value);
|
return $this->toString($value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user