This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
SisMaker
/
lager
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
53
Wiki
Activity
Browse Source
Return Default if lager_config:get/2 crashes
pull/88/head
Andrew Thompson
12 years ago
parent
a192bd9e91
commit
1074416140
1 changed files
with
4 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-1
src/lager_config.erl
+ 4
- 1
src/lager_config.erl
View File
@ -49,11 +49,14 @@ get(Key) ->
end
.
get
(
Key
,
Default
)
-
>
case
?
MODULE
:
get
(
Key
)
of
try
?
MODULE
:
get
(
Key
)
of
undefined
-
>
Default
;
Res
-
>
Res
catch
_
:
_
-
>
Default
end
.
set
(
Key
,
Value
)
-
>
Write
Preview
Loading…
Cancel
Save