Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Registro
Iniciar sesión
SisMaker
/
lager
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Pull Requests
0
Projects
0
Lanzamientos
53
Wiki
Actividad
Explorar el Código
Return Default if lager_config:get/2 crashes
pull/88/head
Andrew Thompson
hace 12 años
padre
a192bd9e91
commit
1074416140
Se han
modificado 1 ficheros
con
4 adiciones
y
1 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+4
-1
src/lager_config.erl
+ 4
- 1
src/lager_config.erl
Ver fichero
@ -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
)
-
>
Escribir
Vista previa
Cargando…
Cancelar
Guardar