Skip to content

Commit

Permalink
Deleted the redundant log variable
Browse files Browse the repository at this point in the history
  • Loading branch information
SampathKumarAmex authored and vlsi committed Jan 4, 2022
1 parent 1d8f1e1 commit dc91e8b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ public class ParseCurlCommandAction extends AbstractAction implements MenuCreato
public static final String IMPORT_CURL = "import_curl";
private static final String CREATE_REQUEST = "CREATE_REQUEST";
private static final String CERT = "cert";
private Logger log = LoggerFactory.getLogger(getClass());
/** A panel allowing results to be saved. */
private FilePanel filePanel = null;
static {
Expand Down Expand Up @@ -550,11 +549,11 @@ private void setFormData(Request request, HTTPSamplerProxy httpSampler) {
if (contentFile.canRead()) {
contentType = tika.detect(contentFile);
} else {
log.info("Can not read file {}, so guessing contentType by extension.", formValue);
LOGGER.info("Can not read file {}, so guessing contentType by extension.", formValue);
contentType = tika.detect(formValue);
}
} catch (IOException e) {
log.info(
LOGGER.info(
"Could not detect contentType for file {} by content, so falling back to detection by filename",
formValue);
contentType = tika.detect(formValue);
Expand Down

0 comments on commit dc91e8b

Please sign in to comment.