Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Registrati
Accedi
SisMaker
/
lager
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Projects
0
Rilasci
53
Wiki
Attività
Sfoglia il codice sorgente
Return Default if lager_config:get/2 crashes
pull/88/head
Andrew Thompson
12 anni fa
parent
a192bd9e91
commit
1074416140
1 ha cambiato i file
con
4 aggiunte
e
1 eliminazioni
Visualizzazione separata
Opzioni Diff
Mostra statistiche
Scarica il file Patch
Scarica il file Diff
+4
-1
src/lager_config.erl
+ 4
- 1
src/lager_config.erl
Vedi 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
)
-
>
Scrivi
Anteprima
Caricamento…
Annulla
Salva