Skip to content

Logging to file leads to too many open files #9

@essenciary

Description

@essenciary

I might be using it wrong, but logging a lot eventually runs out of files. It seems that opened files never get closed: f = open(file_name, file_mode)

┌ Error: SystemError: opening file "log/dev.log": Too many open files
│ #systemerror#44(::Nothing, ::typeof(systemerror), ::String, ::Bool) at /Applications/Julia-1.2.app/Contents/Resources/julia/lib/julia/sys.dylib:?
│ systemerror at ./error.jl:134 [inlined]
│ #open#311(::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Bool, ::typeof(open), ::String) at ./iostream.jl:289#open at ./none:0 [inlined]open(::String, ::String) at ./iostream.jl:345#basic_config#2 at /Users/adrian/.julia/packages/MiniLogging/F3GsD/src/MiniLogging.jl:123 [inlined]
│ basic_config at /Users/adrian/.julia/packages/MiniLogging/F3GsD/src/MiniLogging.jl:122 [inlined]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions