Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
3e4d08ba
Commit
3e4d08ba
authored
Oct 20, 2005
by
Patrick Meidl
Browse files
create log dir if not exists
parent
214bbcae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
modules/Bio/EnsEMBL/Utils/ConversionSupport.pm
modules/Bio/EnsEMBL/Utils/ConversionSupport.pm
+4
-0
No files found.
modules/Bio/EnsEMBL/Utils/ConversionSupport.pm
View file @
3e4d08ba
...
...
@@ -1198,6 +1198,10 @@ sub log_filehandle {
my
$fh
=
\
*STDERR
;
if
(
my
$logfile
=
$self
->
param
('
logfile
'))
{
if
(
my
$logpath
=
$self
->
param
('
logpath
'))
{
unless
(
-
e
$logpath
)
{
system
("
mkdir
$logpath
")
==
0
or
$self
->
log_error
("
Can't create log dir
$logpath
: $!
\n
");
}
$logfile
=
"
$logpath
/
$logfile
";
}
open
(
$fh
,
"
$mode
",
$logfile
)
or
throw
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment